mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
Docs fix
Fixed error in Migration FAQ.
This commit is contained in:
parent
fc717902c6
commit
6d4f283338
1 changed files with 4 additions and 1 deletions
|
|
@ -68,6 +68,9 @@ Also you can bind your own filters for using as keyword arguments:
|
|||
class MyFilter(BoundFilter):
|
||||
key = 'is_admin'
|
||||
|
||||
def __init__(self, is_admin):
|
||||
pass
|
||||
|
||||
async def check(self, message: types.Message):
|
||||
member = await bot.get_chat_member(message.chat.id, message.from_user.id)
|
||||
return member.is_admin()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue