summaryrefslogtreecommitdiff
path: root/telegram_bot/__init__.py
diff options
context:
space:
mode:
authorDmitrii Morozov <snoopdesigns@gmail.com>2024-06-24 17:35:13 +0200
committerDmitrii Morozov <snoopdesigns@gmail.com>2024-06-24 17:35:13 +0200
commitbb439d1e1f080440950fe1b1f2117d0e4e5506d9 (patch)
treeda48658cc299aac2dc835d18262d26eab8eefc61 /telegram_bot/__init__.py
parentceeb0d8709d0e63ffb957386ccbede1726cc3278 (diff)
Answer callback query
Diffstat (limited to 'telegram_bot/__init__.py')
-rw-r--r--telegram_bot/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/telegram_bot/__init__.py b/telegram_bot/__init__.py
index 0818d67..ebc8c47 100644
--- a/telegram_bot/__init__.py
+++ b/telegram_bot/__init__.py
@@ -44,6 +44,9 @@ class TelegramBot:
callback=callback_query_handler.handle,
func=filter)
+ async def answer_callback_query(self, callback_query_id):
+ await self.__bot.answer_callback_query(callback_query_id=callback_query_id)
+
async def send_message_to_all(self, message_text: str):
for user in self.__user_repository.get_all_users():
try: