Update to layer 140

This commit is contained in:
Lonami Exo
2022-05-12 10:21:03 +02:00
parent 5feb210442
commit 43f629f665
2 changed files with 189 additions and 54 deletions

View File

@@ -65,6 +65,9 @@ class Message(ChatGetter, SenderGetter, TLObject):
pinned (`bool`):
Whether this message is currently pinned or not.
noforwards (`bool`):
Whether this message can be forwarded or not.
id (`int`):
The ID of this message. This field is *always* present.
Any other member is optional and may be `None`.
@@ -141,6 +144,9 @@ class Message(ChatGetter, SenderGetter, TLObject):
(photo albums or video albums), all of them will
have the same value here.
reactions (:tl:`MessageReactions`)
Reactions to this message.
restriction_reason (List[:tl:`RestrictionReason`])
An optional list of reasons why this message was restricted.
If the list is `None`, this message has not been restricted.
@@ -193,6 +199,8 @@ class Message(ChatGetter, SenderGetter, TLObject):
legacy: Optional[bool] = None,
edit_hide: Optional[bool] = None,
pinned: Optional[bool] = None,
noforwards: Optional[bool] = None,
reactions: Optional[types.TypeMessageReactions] = None,
restriction_reason: Optional[types.TypeRestrictionReason] = None,
forwards: Optional[int] = None,
replies: Optional[types.TypeMessageReplies] = None,
@@ -225,8 +233,10 @@ class Message(ChatGetter, SenderGetter, TLObject):
self.replies = replies
self.edit_date = edit_date
self.pinned = pinned
self.noforwards = noforwards
self.post_author = post_author
self.grouped_id = grouped_id
self.reactions = reactions
self.restriction_reason = restriction_reason
self.ttl_period = ttl_period
self.action = action