Spaces:
sahanind
/
No application file

sahanind commited on
Commit
86f45d6
·
verified ·
1 Parent(s): fc96beb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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.send_file(channel,fle, force_document=True)
 
 
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")