mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Merge pull request #232 from MasterGroosha/patch-1
Replaced is_admin() with is_chat_admin() in filters example
This commit is contained in:
commit
56662d6bd8
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ Also you can bind your own filters for using as keyword arguments:
|
|||
|
||||
async def check(self, message: types.Message):
|
||||
member = await bot.get_chat_member(message.chat.id, message.from_user.id)
|
||||
return member.is_admin()
|
||||
return member.is_chat_admin()
|
||||
|
||||
dp.filters_factory.bind(MyFilter)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue