From a272f2be11ba95e340e5f78cea62cb8a85a89a74 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Tue, 26 Oct 2021 19:45:51 +0700 Subject: [PATCH] fixes --- driver/veez.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/driver/veez.py b/driver/veez.py index e10e817..9dfb359 100644 --- a/driver/veez.py +++ b/driver/veez.py @@ -1,12 +1,13 @@ from pyrogram import Client 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( - SESSION_NAME, + ":memory:", API_ID, API_HASH, + bot_token=BOT_TOKEN, plugins=dict(root="program") ) - -call_py = PyTgCalls(bot) +user = Client(SESSION_NAME, API_ID, API_HASH) +call_py = PyTgCalls(user)