Make request_callback_answer async

This commit is contained in:
Dan 2018-06-23 14:31:21 +02:00
parent 811e67c229
commit 7ba2906532

View file

@ -21,7 +21,7 @@ from pyrogram.client.ext import BaseClient
class RequestCallbackAnswer(BaseClient):
def request_callback_answer(self,
async def request_callback_answer(self,
chat_id: int or str,
message_id: int,
callback_data: str):
@ -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,