diff --git a/telebot/__init__.py b/telebot/__init__.py index c466ad425..40e4c37e6 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -7447,7 +7447,7 @@ def unpin_all_general_forum_topic_messages(self, chat_id: Union[int, str]) -> bo def answer_callback_query( - self, callback_query_id: int, + self, callback_query_id: str, text: Optional[str]=None, show_alert: Optional[bool]=None, url: Optional[str]=None, cache_time: Optional[int]=None) -> bool: """ @@ -7457,7 +7457,7 @@ def answer_callback_query( Telegram documentation: https://core.telegram.org/bots/api#answercallbackquery :param callback_query_id: Unique identifier for the query to be answered - :type callback_query_id: :obj:`int` + :type callback_query_id: :obj:`str` :param text: Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters :type text: :obj:`str` diff --git a/telebot/async_telebot.py b/telebot/async_telebot.py index f3d2a85ef..676acb88d 100644 --- a/telebot/async_telebot.py +++ b/telebot/async_telebot.py @@ -9130,7 +9130,7 @@ async def unpin_all_general_forum_topic_messages(self, chat_id: Union[int, str]) return await asyncio_helper.unpin_all_general_forum_topic_messages(self.token, chat_id) async def answer_callback_query( - self, callback_query_id: int, + self, callback_query_id: str, text: Optional[str]=None, show_alert: Optional[bool]=None, url: Optional[str]=None, cache_time: Optional[int]=None) -> bool: """ @@ -9140,7 +9140,7 @@ async def answer_callback_query( Telegram documentation: https://core.telegram.org/bots/api#answercallbackquery :param callback_query_id: Unique identifier for the query to be answered - :type callback_query_id: :obj:`int` + :type callback_query_id: :obj:`str` :param text: Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters :type text: :obj:`str`