mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-02 19:20:09 +03:00
Check for None
This commit is contained in:
parent
3b5e939c04
commit
a40fbb7631
|
@ -873,7 +873,7 @@ class ChatMethods:
|
||||||
)
|
)
|
||||||
|
|
||||||
if isinstance(entity, types.InputPeerChannel):
|
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)
|
full_entity = await self.get_entity(entity)
|
||||||
if full_entity.megagroup:
|
if full_entity.megagroup:
|
||||||
post_messages = None
|
post_messages = None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user