Files
tgex-backend/shared/telegram_base.py
Artem Tsyrulnikov 2fb8c83041 new telegram bot
2025-12-30 19:50:15 +03:00

16 lines
291 B
Python

import logging
import pydantic
from aiogram import Bot
class TelegramConfig(pydantic.BaseModel):
TOKEN: str
class TelegramBase:
def __init__(self, config: TelegramConfig) -> None:
self.bot: Bot = Bot(token=config.TOKEN)
logging.info('Telegram bot initialized')