Skip to content

Commit

Permalink
Merge pull request #2 from cirebon-dev/dev
Browse files Browse the repository at this point in the history
update README..md
  • Loading branch information
guangrei authored Jan 11, 2024
2 parents 7c778e0 + 2dab89f commit 2712f17
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ func = chatrouter.util.get_func("group_name", "command_name")

8. support asynchronous.

9. support midleware

```python
@chatbot.midleware()
def limit_user():
allowed_user_id = (123, 456)
return chatrouter.data_user.id in allowed_user_id
```

## installation

```
Expand Down

0 comments on commit 2712f17

Please sign in to comment.