2021-09-09 01:18:24 +00:00
|
|
|
# ===========
|
|
|
|
# running bot
|
|
|
|
# ===========
|
|
|
|
|
2021-09-09 03:05:12 +00:00
|
|
|
import asyncio
|
2021-09-09 01:18:24 +00:00
|
|
|
from pyrogram import Client, idle
|
|
|
|
from config import API_ID, API_HASH, BOT_TOKEN
|
|
|
|
from bot.videoplayer import app
|
2021-09-09 05:02:51 +00:00
|
|
|
from bot.videoplayer import call_py
|
2021-09-09 01:18:24 +00:00
|
|
|
|
|
|
|
bot = Client(
|
|
|
|
":memory:",
|
|
|
|
API_ID,
|
|
|
|
API_HASH,
|
|
|
|
bot_token=BOT_TOKEN,
|
|
|
|
plugins=dict(root="bot"),
|
|
|
|
)
|
|
|
|
|
|
|
|
bot.start()
|
|
|
|
print("[INFO]: STARTING BOT CLIENT")
|
|
|
|
app.start()
|
|
|
|
print("[INFO]: STARTING USERBOT CLIENT")
|
2021-09-09 03:05:12 +00:00
|
|
|
call_py.start()
|
|
|
|
print("[INFO]: STARTING PY-TGCALLS CLIENT")
|
2021-09-09 01:18:24 +00:00
|
|
|
idle()
|
|
|
|
print("[INFO]: STOPPING BOT")
|