tg_rss_bot/bot.py
Alexey Skobkin 305f1afa3c
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
#7 Moving from package to module.
2022-05-30 00:36:17 +03:00

15 lines
227 B
Python

import logging
import os
from dotenv import load_dotenv
from telegram import CommandProcessor
load_dotenv()
token = os.getenv('TELEGRAM_TOKEN')
bot = CommandProcessor(token)
logging.info("Starting Telegram bot")
bot.run()