Files
FileStreamBot-Caduceus/bot/__init__.py
Dr.Caduceus 225f39bdbd Bump to v1.8
2024-11-24 16:27:07 +05:30

20 lines
485 B
Python

from hydrogram import Client
from logging import getLogger
from logging.config import dictConfig
from .config import Telegram, LOGGER_CONFIG_JSON
dictConfig(LOGGER_CONFIG_JSON)
version = 1.8
logger = getLogger('bot')
TelegramBot = Client(
name = 'bot',
api_id = Telegram.API_ID,
api_hash = Telegram.API_HASH,
bot_token = Telegram.BOT_TOKEN,
plugins = {'root': 'bot/plugins'},
sleep_threshold = -1,
max_concurrent_transmissions = 10,
)