From b59212dbf23080a044963cd28a681a439d0971e9 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 18 Apr 2018 17:19:42 +0200 Subject: [PATCH] Fix send() not returning the value in case of a retry --- pyrogram/session/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/session/session.py b/pyrogram/session/session.py index 8ae70ccc..0013ef68 100644 --- a/pyrogram/session/session.py +++ b/pyrogram/session/session.py @@ -414,4 +414,4 @@ class Session: datetime.now(), type(data))) time.sleep(0.5) - self.send(data, retries - 1) + return self.send(data, retries - 1)