understanding commited on
Commit
23420c7
·
verified ·
1 Parent(s): b4e11e9

Create bot/main.py

Browse files
Files changed (1) hide show
  1. 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()