Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,9 @@ async def updb():
|
|
46 |
await client.start(bot_token=bot_token)
|
47 |
path = 'instance/database.db'
|
48 |
fle = await fast_upload(client, file_location=path)
|
49 |
-
await client.
|
|
|
|
|
50 |
return '2'
|
51 |
|
52 |
app = Flask("Simplz")
|
|
|
46 |
await client.start(bot_token=bot_token)
|
47 |
path = 'instance/database.db'
|
48 |
fle = await fast_upload(client, file_location=path)
|
49 |
+
entity = await client.get_entity(channel)
|
50 |
+
|
51 |
+
await client.send_file(entity,fle, force_document=True)
|
52 |
return '2'
|
53 |
|
54 |
app = Flask("Simplz")
|