Fix chat type example (#999)

This commit is contained in:
Oleg A 2022-09-18 17:08:45 +03:00 committed by GitHub
parent a08c2e750c
commit 94030903ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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