Spaces:
Sleeping
Sleeping
File size: 526 Bytes
99a7487 35e0008 af2b875 225f39b 99a7487 af2b875 35e0008 225f39b 35e0008 225f39b 275009d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import time
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
StartTime = time.time()
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,
)
|