video-stream/driver/core.py
2022-02-07 22:59:27 +07:00

21 lines
370 B
Python

from config import API_HASH, API_ID, BOT_TOKEN, SESSION_NAME
from pyrogram import Client
from pytgcalls import PyTgCalls
bot = Client(
":telegram:",
API_ID,
API_HASH,
bot_token=BOT_TOKEN,
plugins={"root": "program"},
)
user = Client(
SESSION_NAME,
api_id=API_ID,
api_hash=API_HASH,
)
calls = PyTgCalls(user, overload_quiet_mode=True)