mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-24 18:33:44 +03:00
Add missing attributes to Message (#4346)
This commit is contained in:
parent
723fbd570f
commit
49a8f111d3
|
@ -71,6 +71,9 @@ class Message(ChatGetter, SenderGetter, TLObject):
|
||||||
invert_media (`bool`):
|
invert_media (`bool`):
|
||||||
Whether the media in this message should be inverted.
|
Whether the media in this message should be inverted.
|
||||||
|
|
||||||
|
offline (`bool`):
|
||||||
|
Whether the message was sent by an implicit action, for example, as an away or a greeting business message, or as a scheduled message.
|
||||||
|
|
||||||
id (`int`):
|
id (`int`):
|
||||||
The ID of this message. This field is *always* present.
|
The ID of this message. This field is *always* present.
|
||||||
Any other member is optional and may be `None`.
|
Any other member is optional and may be `None`.
|
||||||
|
@ -194,11 +197,13 @@ class Message(ChatGetter, SenderGetter, TLObject):
|
||||||
self.pinned = pinned
|
self.pinned = pinned
|
||||||
self.noforwards = noforwards
|
self.noforwards = noforwards
|
||||||
self.invert_media = invert_media
|
self.invert_media = invert_media
|
||||||
|
self.offline = offline
|
||||||
self.from_id = from_id
|
self.from_id = from_id
|
||||||
self.from_boosts_applied = from_boosts_applied
|
self.from_boosts_applied = from_boosts_applied
|
||||||
self.saved_peer_id = saved_peer_id
|
self.saved_peer_id = saved_peer_id
|
||||||
self.fwd_from = fwd_from
|
self.fwd_from = fwd_from
|
||||||
self.via_bot_id = via_bot_id
|
self.via_bot_id = via_bot_id
|
||||||
|
self.via_business_bot_id = via_business_bot_id
|
||||||
self.reply_to = reply_to
|
self.reply_to = reply_to
|
||||||
self.media = None if isinstance(media, types.MessageMediaEmpty) else media
|
self.media = None if isinstance(media, types.MessageMediaEmpty) else media
|
||||||
self.reply_markup = reply_markup
|
self.reply_markup = reply_markup
|
||||||
|
|
Loading…
Reference in New Issue
Block a user