mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 02:03:04 +00:00
Fix chat type example (#999)
This commit is contained in:
parent
a08c2e750c
commit
94030903ec
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ with a default value :code:`private`:
|
||||||
|
|
||||||
async def __call__(self, message: Message , event_chat: Chat) -> bool:
|
async def __call__(self, message: Message , event_chat: Chat) -> bool:
|
||||||
if event_chat:
|
if event_chat:
|
||||||
return event_chat.type == chat_type
|
return event_chat.type == self.chat_type
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue