Fix broadcast being named post for is_group property

This commit is contained in:
Lonami Exo 2018-06-12 12:31:37 +02:00
parent 0c25bf29b4
commit 2a90de2b08

View File

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