Initial commit
This commit is contained in:
15
app/main.py
Normal file
15
app/main.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from app.bot import TelegramCodexBot
|
||||
from app.config import Config
|
||||
|
||||
|
||||
def main() -> None:
|
||||
config = Config.load()
|
||||
bot = TelegramCodexBot(config)
|
||||
app = bot.build_app()
|
||||
app.run_polling(allowed_updates=["message", "callback_query"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user