mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +03:00
Fix broadcast being named post for is_group property
This commit is contained in:
parent
0c25bf29b4
commit
2a90de2b08
|
@ -252,8 +252,11 @@ class Message:
|
||||||
@property
|
@property
|
||||||
def is_group(self):
|
def is_group(self):
|
||||||
"""True if the message was sent on a group or megagroup."""
|
"""True if the message was sent on a group or megagroup."""
|
||||||
return not self.original_message.broadcast and isinstance(
|
return (
|
||||||
self.original_message.to_id, (types.PeerChat, types.PeerChannel))
|
isinstance(self.original_message.to_id, (types.PeerChat,
|
||||||
|
types.PeerChannel))
|
||||||
|
and not self.original_message.post
|
||||||
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_channel(self):
|
def is_channel(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user