Spaces:
Running
Running
UPDATE
Browse files
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
|
|
|
|
|
|
|
|
|
|
|
|
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)
|