Files
FileStreamBot-Caduceus/bot/__init__.py
2023-11-06 15:39:56 +05:30

19 lines
487 B
Python

from pyrogram import Client
from logging import getLogger
from logging.config import dictConfig
from .config import Telegram, LOGGER_CONFIG_JSON
dictConfig(LOGGER_CONFIG_JSON)
version = 1.0
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"},
workers = Telegram.BOT_WORKERS,
max_concurrent_transmissions=1000
)