mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update README.md
This commit is contained in:
parent
4071ab9124
commit
c86af0496b
@ -319,6 +319,8 @@ class IsAdmin(util.SimpleCustomFilter):
|
|||||||
|
|
||||||
# Now, you can use it in handler.
|
# Now, you can use it in handler.
|
||||||
@bot.message_handler(is_admin=True)
|
@bot.message_handler(is_admin=True)
|
||||||
|
def admin_of_group(message):
|
||||||
|
bot.send_message(message.chat.id, 'You are admin of this group'!)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user