From 166b3646ac5d862968e53ffb2608d1e01f8210f7 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 24 Jun 2018 17:48:33 +0200 Subject: [PATCH] Make request_callback_answer try only once with a timeout of 10 seconds --- pyrogram/client/methods/bots/request_callback_answer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyrogram/client/methods/bots/request_callback_answer.py b/pyrogram/client/methods/bots/request_callback_answer.py index 5bc31efd..e5871dd8 100644 --- a/pyrogram/client/methods/bots/request_callback_answer.py +++ b/pyrogram/client/methods/bots/request_callback_answer.py @@ -47,5 +47,7 @@ class RequestCallbackAnswer(BaseClient): peer=self.resolve_peer(chat_id), msg_id=message_id, data=callback_data.encode() - ) + ), + retries=0, + timeout=10 )