Files
FileStreamBot-Caduceus/bot/__init__.py

20 lines
485 B
Python
Raw Normal View History

2024-11-20 15:29:44 +05:30
from hydrogram import Client
2023-11-05 22:02:58 +05:30
from logging import getLogger
from logging.config import dictConfig
from .config import Telegram, LOGGER_CONFIG_JSON
dictConfig(LOGGER_CONFIG_JSON)
2024-11-24 16:27:07 +05:30
version = 1.8
2023-11-05 22:02:58 +05:30
logger = getLogger('bot')
2024-11-20 15:29:44 +05:30
TelegramBot = Client(
2024-11-24 16:27:07 +05:30
name = 'bot',
2024-11-20 15:29:44 +05:30
api_id = Telegram.API_ID,
api_hash = Telegram.API_HASH,
bot_token = Telegram.BOT_TOKEN,
plugins = {'root': 'bot/plugins'},
2024-11-24 16:27:07 +05:30
sleep_threshold = -1,
max_concurrent_transmissions = 10,
2023-11-07 14:43:09 +05:30
)