Spaces:
Running
Running
BinaryONe
commited on
Commit
·
3dac60c
1
Parent(s):
5a67dbb
AllFilesDB
Browse files
FileStream/bot/__init__.py
CHANGED
|
@@ -11,11 +11,11 @@ else:
|
|
| 11 |
no_updates = False
|
| 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",
|
|
@@ -27,7 +27,6 @@ FileStream = Client(
|
|
| 27 |
sleep_threshold=Telegram.SLEEP_THRESHOLD,
|
| 28 |
workers=Telegram.WORKERS,
|
| 29 |
no_updates=no_updates,
|
| 30 |
-
session=session
|
| 31 |
)
|
| 32 |
|
| 33 |
|
|
|
|
| 11 |
no_updates = False
|
| 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",
|
|
|
|
| 27 |
sleep_threshold=Telegram.SLEEP_THRESHOLD,
|
| 28 |
workers=Telegram.WORKERS,
|
| 29 |
no_updates=no_updates,
|
|
|
|
| 30 |
)
|
| 31 |
|
| 32 |
|