2022-02-15 04:44:58 +00:00
|
|
|
import asyncio
|
2022-01-31 12:01:11 +00:00
|
|
|
from pyrogram import Client
|
2022-02-15 04:44:58 +00:00
|
|
|
from pyrogram.types import User
|
2022-01-31 12:01:11 +00:00
|
|
|
from pytgcalls import PyTgCalls
|
2022-02-10 09:52:05 +00:00
|
|
|
from config import API_HASH, API_ID, BOT_TOKEN, SESSION_NAME
|
2022-01-31 12:01:11 +00:00
|
|
|
|
2022-02-07 15:55:09 +00:00
|
|
|
|
2022-01-31 12:01:11 +00:00
|
|
|
bot = Client(
|
2022-02-08 00:47:26 +00:00
|
|
|
":veez:",
|
2022-01-31 12:01:11 +00:00
|
|
|
API_ID,
|
|
|
|
API_HASH,
|
2022-02-15 04:44:58 +00:00
|
|
|
bot_token=BOT_TOKEN
|
2022-01-31 12:01:11 +00:00
|
|
|
)
|
2022-02-15 04:44:58 +00:00
|
|
|
|
2022-01-31 12:01:11 +00:00
|
|
|
user = Client(
|
|
|
|
SESSION_NAME,
|
|
|
|
api_id=API_ID,
|
|
|
|
api_hash=API_HASH,
|
|
|
|
)
|
|
|
|
|
2022-02-07 15:55:09 +00:00
|
|
|
calls = PyTgCalls(user, overload_quiet_mode=True)
|
2022-02-15 04:44:58 +00:00
|
|
|
|
|
|
|
with bot as app:
|
|
|
|
me_bot = app.get_me()
|
|
|
|
with user as app:
|
|
|
|
me_user = app.get_me()
|
|
|
|
|
|
|
|
bot = Client( # type: ignore
|
|
|
|
":veez:",
|
|
|
|
API_ID,
|
|
|
|
API_HASH,
|
|
|
|
bot_token=BOT_TOKEN,
|
|
|
|
plugins={"root": "program"},
|
|
|
|
)
|