video-stream/bot/__main__.py

28 lines
633 B
Python
Raw Normal View History

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
2021-09-12 04:34:03 +00:00
# from config import Veez.API_ID, Veez.API_HASH, Veez.BOT_TOKEN
from config import Veez
2021-09-09 01:18:24 +00:00
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:",
2021-09-12 04:34:03 +00:00
Veez.API_ID,
Veez.API_HASH,
bot_token=Veez.BOT_TOKEN,
2021-09-09 01:18:24 +00:00
plugins=dict(root="bot"),
)
bot.start()
2021-09-10 04:18:46 +00:00
print("[STATUS]:✅ »» BOT CLIENT STARTED ««")
2021-09-09 01:18:24 +00:00
app.start()
2021-09-10 04:18:46 +00:00
print("[STATUS]:✅ »» USERBOT CLIENT STARTED ««")
2021-09-09 03:05:12 +00:00
call_py.start()
2021-09-10 04:18:46 +00:00
print("[STATUS]:✅ »» PYTGCALLS CLIENT STARTED ««")
2021-09-09 01:18:24 +00:00
idle()
2021-09-10 04:18:46 +00:00
print("[STATUS]:❌ »» BOT STOPPED ««")