Spaces:
Runtime error
Runtime error
Create bot/main.py
Browse files- bot/main.py +8 -0
bot/main.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from bot import TelegramBot
|
| 2 |
+
from bot.server import server
|
| 3 |
+
from bot.startup_log import log_startup
|
| 4 |
+
|
| 5 |
+
if __name__ == "__main__":
|
| 6 |
+
TelegramBot.loop.create_task(server.serve())
|
| 7 |
+
TelegramBot.loop.create_task(log_startup())
|
| 8 |
+
TelegramBot.run()
|