2022-05-02 20:44:16 +00:00
|
|
|
from dotenv import load_dotenv
|
2022-05-02 16:14:12 +00:00
|
|
|
import logging
|
|
|
|
import os
|
2022-05-02 20:44:16 +00:00
|
|
|
|
2022-05-02 16:14:12 +00:00
|
|
|
from telegram.command_processor import CommandProcessor
|
|
|
|
|
|
|
|
|
|
|
|
load_dotenv()
|
|
|
|
|
|
|
|
token = os.getenv('TELEGRAM_TOKEN')
|
|
|
|
|
|
|
|
bot = CommandProcessor(token)
|
|
|
|
logging.info("Starting Telegram bot")
|
|
|
|
bot.run()
|