Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions telebot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand All @@ -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`
Expand Down
4 changes: 2 additions & 2 deletions telebot/async_telebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand All @@ -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`
Expand Down
Loading