Check for None

This commit is contained in:
YouTwitFace 2019-10-10 19:33:09 -04:00 committed by GitHub
parent 3b5e939c04
commit a40fbb7631
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -873,7 +873,7 @@ class ChatMethods:
)
if isinstance(entity, types.InputPeerChannel):
if post_messages or edit_messages:
if post_messages is None or edit_messages is None:
full_entity = await self.get_entity(entity)
if full_entity.megagroup:
post_messages = None