This commit is contained in:
levina 2021-10-26 13:37:52 +07:00 committed by GitHub
parent 5c9e12eca4
commit c8047a6308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,16 +1,12 @@
from pyrogram import Client
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)