Skip to content

Commit ccd80ab

Browse files
authored
Update Pyrogram to v2.2.2 (#130)
Try to fix #123 by sleeping for more time in invoke function
1 parent 0b2cffb commit ccd80ab

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pyrogram/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

1919
__fork_name__ = "pyrotgfork"
20-
__version__ = "2.2.1"
20+
__version__ = "2.2.2"
2121
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
2222
__copyright__ = "Copyright (C) 2017-present Dan <https://github.com/delivrance>"
2323

pyrogram/session/session.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ async def invoke(
396396
timeout: float = WAIT_TIMEOUT,
397397
sleep_threshold: float = SLEEP_THRESHOLD
398398
):
399+
sleep_threshold = max(sleep_threshold, self.client.sleep_threshold)
400+
399401
try:
400402
await asyncio.wait_for(self.is_connected.wait(), self.WAIT_TIMEOUT)
401403
except asyncio.TimeoutError:

0 commit comments

Comments
 (0)