From e051dda11388d19ca1c379412584c6219428a41f Mon Sep 17 00:00:00 2001 From: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com> Date: Sat, 14 May 2022 15:46:05 +0300 Subject: [PATCH 1/2] CopyMessage return type fix --- telebot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 551fe28..5917ca7 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -1040,7 +1040,7 @@ class TeleBot: reply_to_message_id: Optional[int]=None, allow_sending_without_reply: Optional[bool]=None, reply_markup: Optional[REPLY_MARKUP_TYPES]=None, - timeout: Optional[int]=None) -> int: + timeout: Optional[int]=None) -> types.MessageID: """ Use this method to copy messages of any kind. From 3f28bb6e9d5bc724031f310c1539ecd64c6e56c2 Mon Sep 17 00:00:00 2001 From: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com> Date: Sat, 14 May 2022 15:48:27 +0300 Subject: [PATCH 2/2] CopyMessage return type fix [async] --- telebot/async_telebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/async_telebot.py b/telebot/async_telebot.py index f6d8cc4..35c2da8 100644 --- a/telebot/async_telebot.py +++ b/telebot/async_telebot.py @@ -1654,7 +1654,7 @@ class AsyncTeleBot: reply_to_message_id: Optional[int]=None, allow_sending_without_reply: Optional[bool]=None, reply_markup: Optional[REPLY_MARKUP_TYPES]=None, - timeout: Optional[int]=None) -> int: + timeout: Optional[int]=None) -> types.MessageID: """ Use this method to copy messages of any kind.