parse_mode should be UNSET instead of None (#877)

* fix: parse_mode should be UNSET instead of None

#876

* docs: add changelog

* docs: fixed changelog name

* fix: changelog typo fix
This commit is contained in:
Oleg A 2022-04-06 04:19:31 +03:00 committed by GitHub
parent b8aa03bc38
commit ffe9506dc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
CHANGES/876.bugfix Normal file
View file

@ -0,0 +1 @@
Fixed default `parse_mode` for `Message.copy_to()` method.

View file

@ -1753,7 +1753,7 @@ class Message(TelegramObject):
self, self,
chat_id: Union[int, str], chat_id: Union[int, str],
caption: Optional[str] = None, caption: Optional[str] = None,
parse_mode: Optional[str] = None, parse_mode: Optional[str] = UNSET,
caption_entities: Optional[List[MessageEntity]] = None, caption_entities: Optional[List[MessageEntity]] = None,
disable_notification: Optional[bool] = None, disable_notification: Optional[bool] = None,
reply_to_message_id: Optional[int] = None, reply_to_message_id: Optional[int] = None,