@@ -0,0 +1,14 @@
|
||||
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')
|
||||
Reference in New Issue
Block a user