Skip to content

Commit

Permalink
Add missing saved_peer_id parameter to Message
Browse files Browse the repository at this point in the history
  • Loading branch information
Lonami committed Jan 4, 2024
1 parent c445684 commit 9dbe9a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions telethon/tl/custom/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ class Message(ChatGetter, SenderGetter, TLObject):
action (:tl:`MessageAction`):
The message action object of the message for :tl:`MessageService`
instances, which will be `None` for other types of messages.
saved_peer_id (:tl:`Peer`)
"""

# region Initialization
Expand Down Expand Up @@ -208,6 +210,7 @@ def __init__(
restriction_reason: Optional[List[types.TypeRestrictionReason]] = None,
forwards: Optional[int] = None,
replies: Optional[types.TypeMessageReplies] = None,
saved_peer_id: Optional[types.TypePeer] = None,

# For MessageAction (mandatory)
action: Optional[types.TypeMessageAction] = None
Expand Down Expand Up @@ -244,6 +247,7 @@ def __init__(
self.reactions = reactions
self.restriction_reason = restriction_reason
self.ttl_period = ttl_period
self.saved_peer_id = saved_peer_id
self.action = action

# Convenient storage for custom functions
Expand Down

0 comments on commit 9dbe9a7

Please sign in to comment.