diff --git a/driver/veez.py b/driver/veez.py index 9dfb359..5f36652 100644 --- a/driver/veez.py +++ b/driver/veez.py @@ -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)