This commit is contained in:
levina 2021-10-26 19:45:51 +07:00 committed by GitHub
parent 5e2758572c
commit a272f2be11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,13 @@
from pyrogram import Client from pyrogram import Client
from pytgcalls import PyTgCalls from pytgcalls import PyTgCalls
from config import SESSION_NAME, API_ID, API_HASH from config import SESSION_NAME, API_ID, API_HASH, BOT_TOKEN
bot = Client( bot = Client(
SESSION_NAME, ":memory:",
API_ID, API_ID,
API_HASH, API_HASH,
bot_token=BOT_TOKEN,
plugins=dict(root="program") plugins=dict(root="program")
) )
user = Client(SESSION_NAME, API_ID, API_HASH)
call_py = PyTgCalls(bot) call_py = PyTgCalls(user)