mirror of
https://github.com/TheCaduceus/FileStreamBot.git
synced 2026-01-15 16:33:25 -03:00
16 lines
352 B
Python
16 lines
352 B
Python
from telethon import TelegramClient
|
|
from logging import getLogger
|
|
from logging.config import dictConfig
|
|
from .config import Telegram, LOGGER_CONFIG_JSON
|
|
|
|
dictConfig(LOGGER_CONFIG_JSON)
|
|
|
|
version = 1.2
|
|
logger = getLogger('bot')
|
|
|
|
TelegramBot = TelegramClient(
|
|
session='bot',
|
|
api_id=Telegram.API_ID,
|
|
api_hash=Telegram.API_HASH
|
|
)
|