From 5cba15abf9f54201986c6f7eb87d1a890f59dd04 Mon Sep 17 00:00:00 2001 From: Tofik Denianto <77754555+tofikdn@users.noreply.github.com> Date: Sun, 31 Oct 2021 05:53:27 +0700 Subject: [PATCH] Update veez.py --- driver/veez.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) 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)