From 77144a0dc71a71679d16a7193022b33cde4e652b Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 25 Oct 2021 15:28:36 +0700 Subject: [PATCH] change --- driver/veez.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 driver/veez.py diff --git a/driver/veez.py b/driver/veez.py new file mode 100644 index 0000000..c2a7485 --- /dev/null +++ b/driver/veez.py @@ -0,0 +1,16 @@ +from pytgcalls import PyTgCalls +from pyrogram import Client, filters +from config import SESSION_NAME, API_ID, API_HASH + +contact_filter = filters.create( + lambda _, __, message: + (message.from_user and message.from_user.is_contact) or message.outgoing +) + +bot = Client( + SESSION_NAME, + API_ID, + API_HASH, + plugins=dict(root="program") +) +call_py = PyTgCalls(bot)