understanding commited on
Commit
6b0f0a7
·
verified ·
1 Parent(s): b2751e5

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()