From 7ba29065327de11c117af83dc135cd61aaa1c7b5 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 23 Jun 2018 14:31:21 +0200 Subject: [PATCH] Make request_callback_answer async --- .../client/methods/bots/request_callback_answer.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyrogram/client/methods/bots/request_callback_answer.py b/pyrogram/client/methods/bots/request_callback_answer.py index 5bc31efd..4ca72592 100644 --- a/pyrogram/client/methods/bots/request_callback_answer.py +++ b/pyrogram/client/methods/bots/request_callback_answer.py @@ -21,10 +21,10 @@ from pyrogram.client.ext import BaseClient class RequestCallbackAnswer(BaseClient): - def request_callback_answer(self, - chat_id: int or str, - message_id: int, - callback_data: str): + async def request_callback_answer(self, + chat_id: int or str, + message_id: int, + callback_data: str): """Use this method to request a callback answer from bots. This is the equivalent of clicking an inline button containing callback data. The answer contains info useful for clients to display a notification at the top of the chat screen or as an alert. @@ -42,7 +42,7 @@ class RequestCallbackAnswer(BaseClient): callback_data (``str``): Callback data associated with the inline button you want to get the answer from. """ - return self.send( + return await self.send( functions.messages.GetBotCallbackAnswer( peer=self.resolve_peer(chat_id), msg_id=message_id,