16 lines
320 B
Python
16 lines
320 B
Python
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()
|