14 lines
244 B
Python
14 lines
244 B
Python
|
import logging
|
||
|
import os
|
||
|
from telegram.command_processor import CommandProcessor
|
||
|
|
||
|
from dotenv import load_dotenv
|
||
|
|
||
|
load_dotenv()
|
||
|
|
||
|
token = os.getenv('TELEGRAM_TOKEN')
|
||
|
|
||
|
bot = CommandProcessor(token)
|
||
|
logging.info("Starting Telegram bot")
|
||
|
bot.run()
|