2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

Make request_callback_answer try only once with a timeout of 10 seconds

This commit is contained in:
Dan 2018-06-24 17:48:33 +02:00
parent 69d1432251
commit 166b3646ac

View File

@ -47,5 +47,7 @@ class RequestCallbackAnswer(BaseClient):
peer=self.resolve_peer(chat_id), peer=self.resolve_peer(chat_id),
msg_id=message_id, msg_id=message_id,
data=callback_data.encode() data=callback_data.encode()
) ),
retries=0,
timeout=10
) )