From 2a90de2b08257f9c5384d0c14c4da686d5e93eef Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Tue, 12 Jun 2018 12:31:37 +0200 Subject: [PATCH] Fix broadcast being named post for is_group property --- telethon/tl/custom/message.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/telethon/tl/custom/message.py b/telethon/tl/custom/message.py index 7f373284..73a2c547 100644 --- a/telethon/tl/custom/message.py +++ b/telethon/tl/custom/message.py @@ -252,8 +252,11 @@ class Message: @property def is_group(self): """True if the message was sent on a group or megagroup.""" - return not self.original_message.broadcast and isinstance( - self.original_message.to_id, (types.PeerChat, types.PeerChannel)) + return ( + isinstance(self.original_message.to_id, (types.PeerChat, + types.PeerChannel)) + and not self.original_message.post + ) @property def is_channel(self):