From e9f3677908578aaa5dc1138d53f729c94d603412 Mon Sep 17 00:00:00 2001 From: wulan17 Date: Thu, 4 Jan 2024 04:19:04 +0700 Subject: [PATCH] Pyrofork: Add support for username in reply_in_chat_id and stories chat_id Signed-off-by: wulan17 --- pyrogram/methods/messages/send_animation.py | 4 +- pyrogram/methods/messages/send_audio.py | 4 +- .../methods/messages/send_cached_media.py | 4 +- pyrogram/methods/messages/send_contact.py | 4 +- pyrogram/methods/messages/send_dice.py | 4 +- pyrogram/methods/messages/send_document.py | 4 +- pyrogram/methods/messages/send_location.py | 4 +- pyrogram/methods/messages/send_media_group.py | 4 +- pyrogram/methods/messages/send_message.py | 2 +- pyrogram/methods/messages/send_photo.py | 4 +- pyrogram/methods/messages/send_poll.py | 4 +- pyrogram/methods/messages/send_sticker.py | 4 +- pyrogram/methods/messages/send_venue.py | 4 +- pyrogram/methods/messages/send_video.py | 4 +- pyrogram/methods/messages/send_video_note.py | 4 +- pyrogram/methods/messages/send_voice.py | 4 +- pyrogram/methods/messages/send_web_page.py | 4 +- pyrogram/methods/users/delete_stories.py | 4 +- pyrogram/methods/users/forward_story.py | 6 +- pyrogram/methods/users/send_story.py | 6 +- pyrogram/types/messages_and_media/message.py | 72 +++++++++---------- 21 files changed, 77 insertions(+), 77 deletions(-) diff --git a/pyrogram/methods/messages/send_animation.py b/pyrogram/methods/messages/send_animation.py index a279d38f..516e7448 100644 --- a/pyrogram/methods/messages/send_animation.py +++ b/pyrogram/methods/messages/send_animation.py @@ -50,7 +50,7 @@ class SendAnimation: message_thread_id: int = None, reply_to_message_id: int = None, reply_to_story_id: int = None, - reply_to_chat_id: int = None, + reply_to_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, schedule_date: datetime = None, @@ -131,7 +131,7 @@ class SendAnimation: reply_to_story_id (``int``, *optional*): Unique identifier for the target story. - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/messages/send_audio.py b/pyrogram/methods/messages/send_audio.py index c03c6883..00e07447 100644 --- a/pyrogram/methods/messages/send_audio.py +++ b/pyrogram/methods/messages/send_audio.py @@ -48,7 +48,7 @@ class SendAudio: message_thread_id: int = None, reply_to_message_id: int = None, reply_to_story_id: int = None, - reply_to_chat_id: int = None, + reply_to_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, schedule_date: datetime = None, @@ -124,7 +124,7 @@ class SendAudio: reply_to_story_id (``int``, *optional*): Unique identifier for the target story. - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/messages/send_cached_media.py b/pyrogram/methods/messages/send_cached_media.py index 6954a937..8cc3761c 100644 --- a/pyrogram/methods/messages/send_cached_media.py +++ b/pyrogram/methods/messages/send_cached_media.py @@ -39,7 +39,7 @@ class SendCachedMedia: message_thread_id: int = None, reply_to_message_id: int = None, reply_to_story_id: int = None, - reply_to_chat_id: int = None, + reply_to_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, schedule_date: datetime = None, @@ -96,7 +96,7 @@ class SendCachedMedia: reply_to_story_id (``int``, *optional*): Unique identifier for the target story. - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/messages/send_contact.py b/pyrogram/methods/messages/send_contact.py index d1f9ebf6..58af7e75 100644 --- a/pyrogram/methods/messages/send_contact.py +++ b/pyrogram/methods/messages/send_contact.py @@ -36,7 +36,7 @@ class SendContact: disable_notification: bool = None, message_thread_id: int = None, reply_to_message_id: int = None, - reply_to_chat_id: int = None, + reply_to_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, parse_mode: Optional["enums.ParseMode"] = None, @@ -82,7 +82,7 @@ class SendContact: reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/messages/send_dice.py b/pyrogram/methods/messages/send_dice.py index 03e86b71..894dc746 100644 --- a/pyrogram/methods/messages/send_dice.py +++ b/pyrogram/methods/messages/send_dice.py @@ -34,7 +34,7 @@ class SendDice: message_thread_id: int = None, reply_to_message_id: int = None, reply_to_story_id: int = None, - reply_to_chat_id: int = None, + reply_to_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, parse_mode: Optional["enums.ParseMode"] = None, @@ -78,7 +78,7 @@ class SendDice: reply_to_story_id (``int``, *optional*): Unique identifier for the target story. - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/messages/send_document.py b/pyrogram/methods/messages/send_document.py index 30b7d0fa..c89547e2 100644 --- a/pyrogram/methods/messages/send_document.py +++ b/pyrogram/methods/messages/send_document.py @@ -46,7 +46,7 @@ class SendDocument: message_thread_id: int = None, reply_to_message_id: int = None, reply_to_story_id: int = None, - reply_to_chat_id: int = None, + reply_to_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, schedule_date: datetime = None, @@ -116,7 +116,7 @@ class SendDocument: reply_to_story_id (``int``, *optional*): Unique identifier for the target story. - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/messages/send_location.py b/pyrogram/methods/messages/send_location.py index 714d8d28..77b9dacd 100644 --- a/pyrogram/methods/messages/send_location.py +++ b/pyrogram/methods/messages/send_location.py @@ -34,7 +34,7 @@ class SendLocation: disable_notification: bool = None, message_thread_id: int = None, reply_to_message_id: int = None, - reply_to_chat_id: int = None, + reply_to_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, parse_mode: Optional["enums.ParseMode"] = None, @@ -71,7 +71,7 @@ class SendLocation: Unique identifier for the target message thread (topic) of the forum. for forum supergroups only. - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/messages/send_media_group.py b/pyrogram/methods/messages/send_media_group.py index 7a58c3f4..914fc066 100644 --- a/pyrogram/methods/messages/send_media_group.py +++ b/pyrogram/methods/messages/send_media_group.py @@ -50,7 +50,7 @@ class SendMediaGroup: message_thread_id: int = None, reply_to_message_id: int = None, reply_to_story_id: int = None, - reply_to_chat_id: int = None, + reply_to_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, parse_mode: Optional["enums.ParseMode"] = None, @@ -84,7 +84,7 @@ class SendMediaGroup: reply_to_story_id (``int``, *optional*): Unique identifier for the target story. - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/messages/send_message.py b/pyrogram/methods/messages/send_message.py index 62906fb8..3e0874a6 100644 --- a/pyrogram/methods/messages/send_message.py +++ b/pyrogram/methods/messages/send_message.py @@ -87,7 +87,7 @@ class SendMessage: reply_to_story_id (``int``, *optional*): Unique identifier for the target story. - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/messages/send_photo.py b/pyrogram/methods/messages/send_photo.py index d6925e0e..710e4d28 100644 --- a/pyrogram/methods/messages/send_photo.py +++ b/pyrogram/methods/messages/send_photo.py @@ -44,7 +44,7 @@ class SendPhoto: message_thread_id: int = None, reply_to_message_id: int = None, reply_to_story_id: int = None, - reply_to_chat_id: int = None, + reply_to_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, schedule_date: datetime = None, @@ -107,7 +107,7 @@ class SendPhoto: reply_to_story_id (``int``, *optional*): Unique identifier for the target story. - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/messages/send_poll.py b/pyrogram/methods/messages/send_poll.py index c0a1ef03..5e1fd5e7 100644 --- a/pyrogram/methods/messages/send_poll.py +++ b/pyrogram/methods/messages/send_poll.py @@ -45,7 +45,7 @@ class SendPoll: protect_content: bool = None, message_thread_id: int = None, reply_to_message_id: int = None, - reply_to_chat_id: int = None, + reply_to_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, parse_mode: Optional["enums.ParseMode"] = None, @@ -127,7 +127,7 @@ class SendPoll: reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/messages/send_sticker.py b/pyrogram/methods/messages/send_sticker.py index fd73517f..db2d0612 100644 --- a/pyrogram/methods/messages/send_sticker.py +++ b/pyrogram/methods/messages/send_sticker.py @@ -41,7 +41,7 @@ class SendSticker: message_thread_id: int = None, reply_to_message_id: int = None, reply_to_story_id: int = None, - reply_to_chat_id: int = None, + reply_to_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, parse_mode: Optional["enums.ParseMode"] = None, @@ -87,7 +87,7 @@ class SendSticker: reply_to_story_id (``int``, *optional*): Unique identifier for the target story. - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/messages/send_venue.py b/pyrogram/methods/messages/send_venue.py index 5557937b..6a544e1d 100644 --- a/pyrogram/methods/messages/send_venue.py +++ b/pyrogram/methods/messages/send_venue.py @@ -38,7 +38,7 @@ class SendVenue: disable_notification: bool = None, message_thread_id: int = None, reply_to_message_id: int = None, - reply_to_chat_id: int = None, + reply_to_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, parse_mode: Optional["enums.ParseMode"] = None, @@ -91,7 +91,7 @@ class SendVenue: reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/messages/send_video.py b/pyrogram/methods/messages/send_video.py index 4658b882..9a32a792 100644 --- a/pyrogram/methods/messages/send_video.py +++ b/pyrogram/methods/messages/send_video.py @@ -51,7 +51,7 @@ class SendVideo: message_thread_id: int = None, reply_to_message_id: int = None, reply_to_story_id: int = None, - reply_to_chat_id: int = None, + reply_to_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, schedule_date: datetime = None, @@ -137,7 +137,7 @@ class SendVideo: reply_to_story_id (``int``, *optional*): Unique identifier for the target story. - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/messages/send_video_note.py b/pyrogram/methods/messages/send_video_note.py index 47e7beff..fc7684c9 100644 --- a/pyrogram/methods/messages/send_video_note.py +++ b/pyrogram/methods/messages/send_video_note.py @@ -43,7 +43,7 @@ class SendVideoNote: message_thread_id: int = None, reply_to_message_id: int = None, reply_to_story_id: int = None, - reply_to_chat_id: int = None, + reply_to_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, parse_mode: Optional["enums.ParseMode"] = None, @@ -101,7 +101,7 @@ class SendVideoNote: reply_to_story_id (``int``, *optional*): Unique identifier for the target story. - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/messages/send_voice.py b/pyrogram/methods/messages/send_voice.py index b407731e..875452e3 100644 --- a/pyrogram/methods/messages/send_voice.py +++ b/pyrogram/methods/messages/send_voice.py @@ -44,7 +44,7 @@ class SendVoice: message_thread_id: int = None, reply_to_message_id: int = None, reply_to_story_id: int = None, - reply_to_chat_id: int = None, + reply_to_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, schedule_date: datetime = None, @@ -105,7 +105,7 @@ class SendVoice: reply_to_story_id (``int``, *optional*): Unique identifier for the target story. - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/messages/send_web_page.py b/pyrogram/methods/messages/send_web_page.py index 3d2565e9..4dbbe4ce 100644 --- a/pyrogram/methods/messages/send_web_page.py +++ b/pyrogram/methods/messages/send_web_page.py @@ -38,7 +38,7 @@ class SendWebPage: message_thread_id: int = None, reply_to_message_id: int = None, reply_to_story_id: int = None, - reply_to_chat_id: int = None, + reply_to_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, schedule_date: datetime = None, @@ -93,7 +93,7 @@ class SendWebPage: reply_to_story_id (``int``, *optional*): Unique identifier for the target story. - reply_to_chat_id (``int``, *optional*): + reply_to_chat_id (``int`` | ``str``, *optional*): Unique identifier for the origin chat. for reply to message from another chat. diff --git a/pyrogram/methods/users/delete_stories.py b/pyrogram/methods/users/delete_stories.py index b8b97eaf..3a061ba9 100644 --- a/pyrogram/methods/users/delete_stories.py +++ b/pyrogram/methods/users/delete_stories.py @@ -29,7 +29,7 @@ class DeleteStories: async def delete_stories( self: "pyrogram.Client", story_ids: Union[int, Iterable[int]], - chat_id: int = None + chat_id: Union[int, str] = None ) -> bool: """Delete one or more story by using story identifiers. @@ -41,7 +41,7 @@ class DeleteStories: story themselves. chat_id (``int``, *optional*): - Unique identifier (int) of the target channel. + Unique identifier (int) or username (str) of the target channel. Returns: `bool`: On success, a True is returned. diff --git a/pyrogram/methods/users/forward_story.py b/pyrogram/methods/users/forward_story.py index 7a3e4cc0..ecb7d451 100644 --- a/pyrogram/methods/users/forward_story.py +++ b/pyrogram/methods/users/forward_story.py @@ -29,7 +29,7 @@ class ForwardStory: self: "pyrogram.Client", from_chat_id: Union[int, str], from_story_id: int, - chat_id: int = None, + chat_id: Union[int, str] = None, privacy: "enums.StoriesPrivacyRules" = None, allowed_users: List[int] = None, denied_users: List[int] = None, @@ -55,8 +55,8 @@ class ForwardStory: from_story_id (``int``): Unique identifier of original story. - chat_id (``int``, *optional*): - Unique identifier (int) of the target channel. + chat_id (``int`` | ``str``, *optional*): + Unique identifier (int) or username (str) of the target channel. If you want to forward story to a channel. privacy (:obj:`~pyrogram.enums.StoriesPrivacyRules`, *optional*): diff --git a/pyrogram/methods/users/send_story.py b/pyrogram/methods/users/send_story.py index 1dd2d478..ec5dbe64 100644 --- a/pyrogram/methods/users/send_story.py +++ b/pyrogram/methods/users/send_story.py @@ -30,7 +30,7 @@ class SendStory: async def send_story( self: "pyrogram.Client", - chat_id: int = None, + chat_id: Union[int,str] = None, privacy: "enums.StoriesPrivacyRules" = None, allowed_users: List[int] = None, denied_users: List[int] = None, @@ -56,8 +56,8 @@ class SendStory: Note: You must pass one of following paramater *animation*, *photo*, *video* Parameters: - chat_id (``int``, *optional*): - Unique identifier (int) of the target channel. + chat_id (``int`` | ``str``, *optional*): + Unique identifier (int) or username (str) of the target channel. animation (``str`` | ``BinaryIO``, *optional*): Animation to send. diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index 56d30857..e44e671d 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -1189,7 +1189,7 @@ class Message(Object, Update): disable_web_page_preview: bool = None, disable_notification: bool = None, reply_to_message_id: int = None, - reply_in_chat_id: int = None, + reply_in_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, schedule_date: datetime = None, @@ -1242,9 +1242,9 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. - reply_in_chat_id (``int``, *optional*): - Unique identifier of target chat. - for reply message in another chat. + reply_to_chat_id (``int`` | ``str``, *optional*): + Unique identifier for the origin chat. + for reply to message from another chat. quote_text (``str``, *optional*): Text to quote. @@ -1331,7 +1331,7 @@ class Message(Object, Update): "types.ForceReply" ] = None, reply_to_message_id: int = None, - reply_in_chat_id: int = None, + reply_in_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, progress: Callable = None, @@ -1404,9 +1404,9 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. - reply_in_chat_id (``int``, *optional*): - Unique identifier of target chat. - for reply message in another chat. + reply_to_chat_id (``int`` | ``str``, *optional*): + Unique identifier for the origin chat. + for reply to message from another chat. quote_text (``str``, *optional*): Text to quote. @@ -1503,7 +1503,7 @@ class Message(Object, Update): file_name: str = None, disable_notification: bool = None, reply_to_message_id: int = None, - reply_in_chat_id: int = None, + reply_in_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, reply_markup: Union[ @@ -1579,7 +1579,7 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. - reply_in_chat_id (``int``, *optional*): + reply_in_chat_id: Union[int, str] = None, Unique identifier of target chat. for reply message in another chat. @@ -1672,7 +1672,7 @@ class Message(Object, Update): caption_entities: List["types.MessageEntity"] = None, disable_notification: bool = None, reply_to_message_id: int = None, - reply_in_chat_id: int = None, + reply_in_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, reply_markup: Union[ @@ -1725,7 +1725,7 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. - reply_in_chat_id (``int``, *optional*): + reply_in_chat_id: Union[int, str] = None, Unique identifier of target chat. for reply message in another chat. @@ -1824,7 +1824,7 @@ class Message(Object, Update): vcard: str = "", disable_notification: bool = None, reply_to_message_id: int = None, - reply_in_chat_id: int = None, + reply_in_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, parse_mode: Optional["enums.ParseMode"] = None, @@ -1877,7 +1877,7 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. - reply_in_chat_id (``int``, *optional*): + reply_in_chat_id: Union[int, str] = None, Unique identifier of target chat. for reply message in another chat. @@ -1948,7 +1948,7 @@ class Message(Object, Update): force_document: bool = None, disable_notification: bool = None, reply_to_message_id: int = None, - reply_in_chat_id: int = None, + reply_in_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, schedule_date: datetime = None, @@ -2021,7 +2021,7 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. - reply_in_chat_id (``int``, *optional*): + reply_in_chat_id: Union[int, str] = None, Unique identifier of target chat. for reply message in another chat. @@ -2269,7 +2269,7 @@ class Message(Object, Update): quote: bool = None, disable_notification: bool = None, reply_to_message_id: int = None, - reply_in_chat_id: int = None, + reply_in_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, parse_mode: Optional["enums.ParseMode"] = None, @@ -2316,7 +2316,7 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message - reply_in_chat_id (``int``, *optional*): + reply_in_chat_id: Union[int, str] = None, Unique identifier of target chat. for reply message in another chat. @@ -2384,7 +2384,7 @@ class Message(Object, Update): quote: bool = None, disable_notification: bool = None, reply_to_message_id: int = None, - reply_in_chat_id: int = None, + reply_in_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, parse_mode: Optional["enums.ParseMode"] = None @@ -2423,7 +2423,7 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. - reply_in_chat_id (``int``, *optional*): + reply_in_chat_id: Union[int, str] = None, Unique identifier of target chat. for reply message in another chat. @@ -2479,7 +2479,7 @@ class Message(Object, Update): ttl_seconds: int = None, disable_notification: bool = None, reply_to_message_id: int = None, - reply_in_chat_id: int = None, + reply_in_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, reply_markup: Union[ @@ -2544,7 +2544,7 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. - reply_in_chat_id (``int``, *optional*): + reply_in_chat_id: Union[int, str] = None, Unique identifier of target chat. for reply message in another chat. @@ -2643,7 +2643,7 @@ class Message(Object, Update): disable_notification: bool = None, protect_content: bool = None, reply_to_message_id: int = None, - reply_in_chat_id: int = None, + reply_in_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, parse_mode: Optional["enums.ParseMode"] = None, @@ -2734,7 +2734,7 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. - reply_in_chat_id (``int``, *optional*): + reply_in_chat_id: Union[int, str] = None, Unique identifier of target chat. for reply message in another chat. @@ -2812,7 +2812,7 @@ class Message(Object, Update): quote: bool = None, disable_notification: bool = None, reply_to_message_id: int = None, - reply_in_chat_id: int = None, + reply_in_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, parse_mode: Optional["enums.ParseMode"] = None, @@ -2860,7 +2860,7 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. - reply_in_chat_id (``int``, *optional*): + reply_in_chat_id: Union[int, str] = None, Unique identifier of target chat. for reply message in another chat. @@ -2953,7 +2953,7 @@ class Message(Object, Update): foursquare_type: str = "", disable_notification: bool = None, reply_to_message_id: int = None, - reply_in_chat_id: int = None, + reply_in_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, parse_mode: Optional["enums.ParseMode"] = None, @@ -3015,7 +3015,7 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message - reply_in_chat_id (``int``, *optional*): + reply_in_chat_id: Union[int, str] = None, Unique identifier of target chat. for reply message in another chat. @@ -3093,7 +3093,7 @@ class Message(Object, Update): supports_streaming: bool = True, disable_notification: bool = None, reply_to_message_id: int = None, - reply_in_chat_id: int = None, + reply_in_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, reply_markup: Union[ @@ -3180,7 +3180,7 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. - reply_in_chat_id (``int``, *optional*): + reply_in_chat_id: Union[int, str] = None, Unique identifier of target chat. for reply message in another chat. @@ -3276,7 +3276,7 @@ class Message(Object, Update): thumb: Union[str, BinaryIO] = None, disable_notification: bool = None, reply_to_message_id: int = None, - reply_in_chat_id: int = None, + reply_in_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, parse_mode: Optional["enums.ParseMode"] = None, @@ -3336,7 +3336,7 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message - reply_in_chat_id (``int``, *optional*): + reply_in_chat_id: Union[int, str] = None, Unique identifier of target chat. for reply message in another chat. @@ -3426,7 +3426,7 @@ class Message(Object, Update): duration: int = 0, disable_notification: bool = None, reply_to_message_id: int = None, - reply_in_chat_id: int = None, + reply_in_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, reply_markup: Union[ @@ -3486,7 +3486,7 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message - reply_in_chat_id (``int``, *optional*): + reply_in_chat_id: Union[int, str] = None, Unique identifier of target chat. for reply message in another chat. @@ -3576,7 +3576,7 @@ class Message(Object, Update): invert_media: bool = None, disable_notification: bool = None, reply_to_message_id: int = None, - reply_in_chat_id: int = None, + reply_in_chat_id: Union[int, str] = None, quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, schedule_date: datetime = None, @@ -3632,7 +3632,7 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. - reply_in_chat_id (``int``, *optional*): + reply_in_chat_id: Union[int, str] = None, Unique identifier of target chat. for reply message in another chat.