Spaces:
Running
Running
BinaryONe
commited on
Commit
·
5a67dbb
1
Parent(s):
fa3f974
AllFilesDB
Browse files- FileStream/bot/__init__.py +12 -11
FileStream/bot/__init__.py
CHANGED
@@ -12,22 +12,23 @@ else:
|
|
12 |
|
13 |
# Create a custom session object with the sqlite.cloud connection string
|
14 |
session = Session(
|
15 |
-
session_name="FileStream",
|
16 |
api_id=Telegram.API_ID,
|
17 |
api_hash=Telegram.API_HASH,
|
18 |
db_uri="sqlitecloud://cgz1np12hz.g1.sqlite.cloud:8860/FileStream?apikey=NnfEaSHjnV1jpSUMlRMzm3agsn5jUb0dymlnCUXS2k8", # Set the custom database URI
|
19 |
)
|
20 |
|
21 |
-
FileStream = Client(
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
|
|
31 |
|
32 |
|
33 |
WORK_LOADS = {}
|
|
|
12 |
|
13 |
# Create a custom session object with the sqlite.cloud connection string
|
14 |
session = Session(
|
|
|
15 |
api_id=Telegram.API_ID,
|
16 |
api_hash=Telegram.API_HASH,
|
17 |
db_uri="sqlitecloud://cgz1np12hz.g1.sqlite.cloud:8860/FileStream?apikey=NnfEaSHjnV1jpSUMlRMzm3agsn5jUb0dymlnCUXS2k8", # Set the custom database URI
|
18 |
)
|
19 |
|
20 |
+
FileStream = Client(
|
21 |
+
name="FileStream",
|
22 |
+
api_id=Telegram.API_ID,
|
23 |
+
api_hash=Telegram.API_HASH,
|
24 |
+
workdir="FileStream",
|
25 |
+
plugins=plugins,
|
26 |
+
bot_token=Telegram.BOT_TOKEN,
|
27 |
+
sleep_threshold=Telegram.SLEEP_THRESHOLD,
|
28 |
+
workers=Telegram.WORKERS,
|
29 |
+
no_updates=no_updates,
|
30 |
+
session=session
|
31 |
+
)
|
32 |
|
33 |
|
34 |
WORK_LOADS = {}
|