Fixed error in Migration FAQ.
This commit is contained in:
Forden 2019-01-13 00:43:03 +03:00 committed by GitHub
parent fc717902c6
commit 6d4f283338
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,10 @@ 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()