video-stream/bot/__main__.py
2021-09-13 15:24:22 +07:00

31 lines
653 B
Python

# ===========
# running bot
# ===========
import logging
import time
import asyncio
from pyrogram import Client, idle
from config import Veez
from bot.videoplayer import app
from bot.videoplayer import call_py
from helpers.loggings import LOG
StartTime = time.time()
bot = Client(
":memory:",
Veez.API_ID,
Veez.API_HASH,
bot_token=Veez.BOT_TOKEN,
plugins=dict(root="bot"),
)
bot.start()
print("[STATUS]:✅ »» BOT CLIENT STARTED ««")
app.start()
print("[STATUS]:✅ »» USERBOT CLIENT STARTED ««")
call_py.start()
print("[STATUS]:✅ »» PYTGCALLS CLIENT STARTED ««")
idle()
print("[STATUS]:❌ »» BOT STOPPED ««")