mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-24 02:13:45 +03:00
Add missing saved_peer_id parameter to Message
This commit is contained in:
parent
c445684be8
commit
9dbe9a7669
|
@ -163,6 +163,8 @@ class Message(ChatGetter, SenderGetter, TLObject):
|
||||||
action (:tl:`MessageAction`):
|
action (:tl:`MessageAction`):
|
||||||
The message action object of the message for :tl:`MessageService`
|
The message action object of the message for :tl:`MessageService`
|
||||||
instances, which will be `None` for other types of messages.
|
instances, which will be `None` for other types of messages.
|
||||||
|
|
||||||
|
saved_peer_id (:tl:`Peer`)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# region Initialization
|
# region Initialization
|
||||||
|
@ -208,6 +210,7 @@ class Message(ChatGetter, SenderGetter, TLObject):
|
||||||
restriction_reason: Optional[List[types.TypeRestrictionReason]] = None,
|
restriction_reason: Optional[List[types.TypeRestrictionReason]] = None,
|
||||||
forwards: Optional[int] = None,
|
forwards: Optional[int] = None,
|
||||||
replies: Optional[types.TypeMessageReplies] = None,
|
replies: Optional[types.TypeMessageReplies] = None,
|
||||||
|
saved_peer_id: Optional[types.TypePeer] = None,
|
||||||
|
|
||||||
# For MessageAction (mandatory)
|
# For MessageAction (mandatory)
|
||||||
action: Optional[types.TypeMessageAction] = None
|
action: Optional[types.TypeMessageAction] = None
|
||||||
|
@ -244,6 +247,7 @@ class Message(ChatGetter, SenderGetter, TLObject):
|
||||||
self.reactions = reactions
|
self.reactions = reactions
|
||||||
self.restriction_reason = restriction_reason
|
self.restriction_reason = restriction_reason
|
||||||
self.ttl_period = ttl_period
|
self.ttl_period = ttl_period
|
||||||
|
self.saved_peer_id = saved_peer_id
|
||||||
self.action = action
|
self.action = action
|
||||||
|
|
||||||
# Convenient storage for custom functions
|
# Convenient storage for custom functions
|
||||||
|
|
Loading…
Reference in New Issue
Block a user