video-stream/driver/core.py

21 lines
366 B
Python
Raw Normal View History

2022-01-31 12:01:11 +00:00
from config import API_HASH, API_ID, BOT_TOKEN, SESSION_NAME
from pyrogram import Client
from pytgcalls import PyTgCalls
2022-02-07 15:55:09 +00:00
2022-01-31 12:01:11 +00:00
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,
)
2022-02-07 15:55:09 +00:00
calls = PyTgCalls(user, overload_quiet_mode=True)