mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +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:
|
||||
if event_chat:
|
||||
return event_chat.type == chat_type
|
||||
return event_chat.type == self.chat_type
|
||||
else:
|
||||
return False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue