Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ 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 |
-
last_message = (await client.get_messages(
|
41 |
await fast_download(client,last_message)
|
42 |
|
43 |
return '2'
|
|
|
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(channel, 1))[0]
|
41 |
await fast_download(client,last_message)
|
42 |
|
43 |
return '2'
|