tg_rss_bot/bot.py

15 lines
227 B
Python
Raw Normal View History

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