Mbonea commited on
Commit
6f39684
·
1 Parent(s): 9b5be52
Files changed (1) hide show
  1. App/__init__.py +2 -2
App/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
  import uuid, contextvars
2
  from telethon import TelegramClient
3
- from telethon.sync import TelegramClient
4
  from telethon.sessions import StringSession
5
 
6
 
@@ -14,7 +14,7 @@ def genUUID():
14
 
15
 
16
  SESSION_STRING = ""
17
- with TelegramClient(
18
  f"./App/{genUUID()}.session",
19
  api_id=870972,
20
  api_hash="ce2efaca02dfcd110941be6025e9ac0d",
 
1
  import uuid, contextvars
2
  from telethon import TelegramClient
3
+ from telethon.sync import TelegramClient as Tlsync
4
  from telethon.sessions import StringSession
5
 
6
 
 
14
 
15
 
16
  SESSION_STRING = ""
17
+ with Tlsync(
18
  f"./App/{genUUID()}.session",
19
  api_id=870972,
20
  api_hash="ce2efaca02dfcd110941be6025e9ac0d",