8b7d45c0d2
new file structure
27 lines
524 B
Python
27 lines
524 B
Python
# ===========
|
|
# running bot
|
|
# ===========
|
|
|
|
import asyncio
|
|
from pyrogram import Client, idle
|
|
from config import API_ID, API_HASH, BOT_TOKEN
|
|
from bot.videoplayer import app
|
|
from player.videoplayer import call_py
|
|
|
|
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")
|
|
call_py.start()
|
|
print("[INFO]: STARTING PY-TGCALLS CLIENT")
|
|
idle()
|
|
print("[INFO]: STOPPING BOT")
|