Forgot to add quote_text

This commit is contained in:
Yasir Aris M 2023-11-02 07:58:43 +07:00 committed by GitHub
parent 7126383257
commit 3445ff978e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3524,6 +3524,7 @@ class Message(Object, Update):
has_spoiler: bool = None,
disable_notification: bool = None,
message_thread_id: int = None,
quote_text: str = None,
reply_to_message_id: int = None,
schedule_date: datetime = None,
protect_content: bool = None,
@ -3580,6 +3581,10 @@ class Message(Object, Update):
Unique identifier for the target message thread (topic) of the forum.
for forum supergroups only.
quote_text (``str``, *optional*):
Text to quote.
for reply_to_message only.
reply_to_message_id (``int``, *optional*):
If the message is a reply, ID of the original message.
@ -3708,10 +3713,11 @@ class Message(Object, Update):
text=self.caption,
entities=self.entities,
parse_mode=enums.ParseMode.DISABLED,
large_media=self.web_page_preview.force_large_media if self.web_page_preview.force_large_media else self.web_page_preview.force_small_media,
large_media=self.web_page_preview.force_large_media,
invert_media=self.web_page_preview.invert_media,
disable_notification=disable_notification,
message_thread_id=message_thread_id,
quote_text=quote_text,
schedule_date=schedule_date,
protect_content=protect_content,
reply_markup=self.reply_markup if reply_markup is object else reply_markup