Update veez.py

This commit is contained in:
Tofik Denianto 2021-10-31 05:53:27 +07:00 committed by GitHub
parent bdbb56e0d7
commit 5cba15abf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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