Fix send_copy helper parse mode (#1332)

* Fix send_copy helper parse mode

* Add changelog for bugfix 1332
This commit is contained in:
Suren Khorenyan 2023-10-08 18:56:30 +03:00 committed by GitHub
parent cad42580dd
commit 564292dd79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 2 deletions

View file

@ -2803,6 +2803,7 @@ class Message(TelegramObject):
reply_markup: Union[InlineKeyboardMarkup, ReplyKeyboardMarkup, None] = None,
allow_sending_without_reply: Optional[bool] = None,
message_thread_id: Optional[int] = None,
parse_mode: Optional[str] = None,
) -> Union[
ForwardMessage,
SendAnimation,
@ -2837,6 +2838,7 @@ class Message(TelegramObject):
:param reply_markup:
:param allow_sending_without_reply:
:param message_thread_id:
:param parse_mode:
:return:
"""
from ..methods import (
@ -2864,6 +2866,9 @@ class Message(TelegramObject):
"reply_to_message_id": reply_to_message_id,
"message_thread_id": message_thread_id,
"allow_sending_without_reply": allow_sending_without_reply,
# when sending a copy, we don't need any parse mode
# because all entities are already prepared
"parse_mode": parse_mode,
}
if self.text: