video-stream/driver/core.py
2022-02-19 22:24:42 +07:00

31 lines
542 B
Python

from pyrogram import Client
from pytgcalls import PyTgCalls
from config import API_HASH, API_ID, BOT_TOKEN, SESSION_NAME
bot = Client(
":veez:",
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,
cache_duration=180,
overload_quiet_mode=True
)
with Client(":veez:", API_ID, API_HASH, bot_token=BOT_TOKEN) as app:
me_bot = app.get_me()
with user as app:
me_user = app.get_me()