We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa62e61 commit c25d88cCopy full SHA for c25d88c
2 files changed
pyrogram/methods/auth/connect.py
@@ -38,7 +38,7 @@ async def connect(
38
39
await self.load_session()
40
41
- self.session = self.get_session(
+ self.session = await self.get_session(
42
server_address=await self.storage.server_address(),
43
port=await self.storage.port(),
44
export_authorization=False,
pyrogram/methods/auth/sign_in_bot.py
@@ -64,7 +64,7 @@ async def sign_in_bot(
64
await self.storage.server_address(dc_option.ip_address)
65
await self.storage.port(dc_option.port)
66
67
- self.session = self.get_session(temporary=True, export_authorization=False)
+ self.session = await self.get_session(temporary=True, export_authorization=False)
68
else:
69
await self.storage.user_id(r.user.id)
70
await self.storage.is_bot(True)
0 commit comments