Skip to content

Commit

Permalink
Merge pull request #2095 from AsMaNick/master
Browse files Browse the repository at this point in the history
Specified correct return type
  • Loading branch information
Badiboy authored Dec 10, 2023
2 parents 52a624b + 7a8559c commit e97f3c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions telebot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1645,8 +1645,8 @@ def copy_message(
:param message_thread_id: Identifier of a message thread, in which the message will be sent
:type message_thread_id: :obj:`int`
:return: On success, the sent Message is returned.
:rtype: :class:`telebot.types.Message`
:return: On success, the MessageId of the sent message is returned.
:rtype: :class:`telebot.types.MessageID`
"""
disable_notification = self.disable_notification if (disable_notification is None) else disable_notification
parse_mode = self.parse_mode if (parse_mode is None) else parse_mode
Expand Down
4 changes: 2 additions & 2 deletions telebot/async_telebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2521,8 +2521,8 @@ async def copy_message(
:param message_thread_id: Identifier of a message thread, in which the message will be sent
:type message_thread_id: :obj:`int`
:return: On success, the sent Message is returned.
:rtype: :class:`telebot.types.Message`
:return: On success, the MessageId of the sent message is returned.
:rtype: :class:`telebot.types.MessageID`
"""
parse_mode = self.parse_mode if (parse_mode is None) else parse_mode
disable_notification = self.disable_notification if (disable_notification is None) else disable_notification
Expand Down

0 comments on commit e97f3c2

Please sign in to comment.