zarox commited on
Commit
1359b3c
·
1 Parent(s): 917fbb7
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -151,6 +151,11 @@ async def initiation():
151
  if __name__ == '__main__':
152
  client.start(bot_token=BOT_TOKEN)
153
  client.loop.run_until_complete(initiation())
154
- print("Bot started succefully!")
155
- client.run_until_disconnected()
156
- iface.launch(share=False)
 
 
 
 
 
 
151
  if __name__ == '__main__':
152
  client.start(bot_token=BOT_TOKEN)
153
  client.loop.run_until_complete(initiation())
154
+ print("Bot started succefully")
155
+ thread_one = threading.Thread(target=client.run_until_disconnected)
156
+ thread_two = threading.Thread(target=iface.launch, kwargs={"share": False})
157
+
158
+ # Start the threads
159
+ thread_one.start()
160
+ thread_two.start()
161
+ (share=False)