Update app.py
Browse files
app.py
CHANGED
@@ -37,8 +37,8 @@ async def downdb():
|
|
37 |
client = TelegramClient(None, api_id, api_hash)
|
38 |
await client.start(bot_token=bot_token)
|
39 |
os.remove('instance/database.db')
|
40 |
-
|
41 |
-
|
42 |
|
43 |
return '2'
|
44 |
|
|
|
37 |
client = TelegramClient(None, api_id, api_hash)
|
38 |
await client.start(bot_token=bot_token)
|
39 |
os.remove('instance/database.db')
|
40 |
+
last_message = (await client.get_messages(chat, 1))[0]
|
41 |
+
await fast_download(client,last_message)
|
42 |
|
43 |
return '2'
|
44 |
|