We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b2cffb commit ccd80abCopy full SHA for ccd80ab
pyrogram/__init__.py
@@ -17,7 +17,7 @@
17
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18
19
__fork_name__ = "pyrotgfork"
20
-__version__ = "2.2.1"
+__version__ = "2.2.2"
21
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
22
__copyright__ = "Copyright (C) 2017-present Dan <https://github.com/delivrance>"
23
pyrogram/session/session.py
@@ -396,6 +396,8 @@ async def invoke(
396
timeout: float = WAIT_TIMEOUT,
397
sleep_threshold: float = SLEEP_THRESHOLD
398
):
399
+ sleep_threshold = max(sleep_threshold, self.client.sleep_threshold)
400
+
401
try:
402
await asyncio.wait_for(self.is_connected.wait(), self.WAIT_TIMEOUT)
403
except asyncio.TimeoutError:
0 commit comments