mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-02 19:20:09 +03:00
parent
a40fbb7631
commit
2fd589aa8a
|
@ -873,7 +873,7 @@ class ChatMethods:
|
||||||
)
|
)
|
||||||
|
|
||||||
if isinstance(entity, types.InputPeerChannel):
|
if isinstance(entity, types.InputPeerChannel):
|
||||||
if post_messages is None or edit_messages is None:
|
if post_messages or edit_messages:
|
||||||
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