2021-09-13 23:09:26 +00:00
|
|
|
|
# Copyright (C) 2021 By VeezMusicProject
|
|
|
|
|
|
2021-09-09 01:18:24 +00:00
|
|
|
|
from pyrogram import Client, filters
|
|
|
|
|
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery
|
|
|
|
|
|
2021-09-12 04:34:20 +00:00
|
|
|
|
from config import Veez
|
2021-09-09 01:18:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Client.on_callback_query(filters.regex("cbguide"))
|
|
|
|
|
async def cbguide(_, query: CallbackQuery):
|
|
|
|
|
await query.edit_message_text(
|
|
|
|
|
f"""❓ HOW TO USE THIS BOT:
|
|
|
|
|
|
|
|
|
|
1.) first, add me to your group.
|
|
|
|
|
2.) then promote me as admin and give all permissions except anonymous admin.
|
2021-09-12 04:34:20 +00:00
|
|
|
|
3.) add @{Veez.ASSISTANT_NAME } to your group.
|
2021-09-09 01:18:24 +00:00
|
|
|
|
4.) turn on the voice chat first before start to stream video.
|
2021-09-10 11:06:57 +00:00
|
|
|
|
5.) type /vplay (reply to video) to start streaming.
|
2021-09-09 01:18:24 +00:00
|
|
|
|
6.) type /vstop to end the video streaming.
|
|
|
|
|
|
|
|
|
|
📝 **note: stream & stop command can only be executed by group admin only!**
|
|
|
|
|
|
|
|
|
|
⚡ __Maintained by Veez Project Team__""",
|
|
|
|
|
reply_markup=InlineKeyboardMarkup(
|
|
|
|
|
[[
|
|
|
|
|
InlineKeyboardButton(
|
|
|
|
|
"🏡 Go Back", callback_data="cbstart")
|
|
|
|
|
]]
|
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Client.on_callback_query(filters.regex("cbstart"))
|
|
|
|
|
async def cbstart(_, query: CallbackQuery):
|
|
|
|
|
await query.edit_message_text(
|
|
|
|
|
f"✨ **Hello there, I am a telegram group video streaming bot.**\n\n💭 **I was created to stream videos in group "
|
|
|
|
|
f"video chats easily.**\n\n❔ **To find out how to use me, please press the help button below** 👇🏻",
|
|
|
|
|
reply_markup=InlineKeyboardMarkup(
|
|
|
|
|
[[
|
2021-09-10 13:08:56 +00:00
|
|
|
|
InlineKeyboardButton(
|
2021-09-12 04:34:20 +00:00
|
|
|
|
"➕ Add me to your Group ➕", url=f"https://t.me/{Veez.BOT_USERNAME}?startgroup=true")
|
2021-09-10 13:08:56 +00:00
|
|
|
|
], [
|
2021-09-09 01:18:24 +00:00
|
|
|
|
InlineKeyboardButton(
|
|
|
|
|
"❔ HOW TO USE THIS BOT", callback_data="cbguide")
|
|
|
|
|
], [
|
|
|
|
|
InlineKeyboardButton(
|
|
|
|
|
"🌐 Terms & Condition", callback_data="cbinfo")
|
|
|
|
|
], [
|
|
|
|
|
InlineKeyboardButton(
|
2021-09-16 07:09:09 +00:00
|
|
|
|
"💬 Group", url=f"https://t.me/{Veez.GROUP_NAME}"),
|
2021-09-09 01:18:24 +00:00
|
|
|
|
InlineKeyboardButton(
|
2021-09-16 07:21:56 +00:00
|
|
|
|
"📣 Channel", url=f"https://t.me/{Veez.CHANNEL_NAME}")
|
2021-09-09 01:18:24 +00:00
|
|
|
|
], [
|
|
|
|
|
InlineKeyboardButton(
|
2021-09-16 07:09:09 +00:00
|
|
|
|
"🧙🏻♂️ Owner", url=f"https://t.me/{Veez.OWNER_NAME}")
|
2021-09-09 01:18:24 +00:00
|
|
|
|
], [
|
|
|
|
|
InlineKeyboardButton(
|
|
|
|
|
"📚 All Command List", callback_data="cblist")
|
|
|
|
|
]]
|
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Client.on_callback_query(filters.regex("cbinfo"))
|
|
|
|
|
async def cbinfo(_, query: CallbackQuery):
|
|
|
|
|
await query.edit_message_text(
|
|
|
|
|
f"""🌐 **bot information !**
|
|
|
|
|
|
|
|
|
|
🤖 __This bot was created to stream video in telegram group video chats using several methods from WebRTC.__
|
|
|
|
|
|
|
|
|
|
💡 __Powered by PyTgcalls the Async client API for the Telegram Group Calls, and Pyrogram the telegram MTProto API
|
2021-09-10 04:02:45 +00:00
|
|
|
|
Client Library and Framework in Pure Python for Users and Bots.__
|
|
|
|
|
|
|
|
|
|
👨🏻💻 __Thanks to the developers who participated in the development of this bot, the list of devs can be seen below:__
|
|
|
|
|
|
|
|
|
|
👩🏻✈️ » [Levina Shavila](https://github.com/levina-lab)
|
|
|
|
|
🤵🏻 » [Sammy-XD](https://github.com/Sammy-XD)
|
2021-09-13 14:06:18 +00:00
|
|
|
|
🤵🏻 » [Zxce3](https://github.com/Zxce3)
|
2021-09-14 20:52:49 +00:00
|
|
|
|
🤵🏻 » [Tofik Denianto](https://github.com/tofikdn)
|
|
|
|
|
🤵🏻 » [Shohih Abdul](https://github.com/DoellBarr)
|
2021-09-09 01:18:24 +00:00
|
|
|
|
|
|
|
|
|
__This bot licensed under GNU-GPL 3.0 License__""",
|
|
|
|
|
reply_markup=InlineKeyboardMarkup(
|
|
|
|
|
[[
|
|
|
|
|
InlineKeyboardButton(
|
|
|
|
|
"🏡 Go Back", callback_data="cbstart")
|
|
|
|
|
]]
|
|
|
|
|
),
|
|
|
|
|
disable_web_page_preview=True
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Client.on_callback_query(filters.regex("cblist"))
|
|
|
|
|
async def cblist(_, query: CallbackQuery):
|
|
|
|
|
await query.edit_message_text(
|
|
|
|
|
f"""📚 All Command List:
|
|
|
|
|
|
2021-09-10 11:06:57 +00:00
|
|
|
|
» /vplay (reply to video or yt/live url) - to stream video
|
|
|
|
|
» /vstop - stop the video streaming
|
2021-09-09 01:18:24 +00:00
|
|
|
|
» /song (song name) - download song from YT
|
|
|
|
|
» /vsong (video name) - download video from YT
|
|
|
|
|
» /lyric (song name) - lyric scrapper
|
2021-09-10 14:34:05 +00:00
|
|
|
|
» /vjoin - invite assistant join to your group
|
|
|
|
|
» /vleave - order assistant leave from your group
|
2021-09-16 05:51:14 +00:00
|
|
|
|
» /startvc - start video chat in your group
|
2021-09-09 01:18:24 +00:00
|
|
|
|
|
|
|
|
|
🎊 FUN CMD:
|
|
|
|
|
|
|
|
|
|
» /asupan - check it by yourself
|
|
|
|
|
» /chika - check it by yourself
|
|
|
|
|
» /wibu - check it by yourself
|
|
|
|
|
» /truth - check it by yourself
|
|
|
|
|
» /dare - check it by yourself
|
|
|
|
|
|
|
|
|
|
🔰 EXTRA CMD:
|
|
|
|
|
|
|
|
|
|
» /tts (reply to text) - text to speech
|
|
|
|
|
» /alive - check bot alive status
|
|
|
|
|
» /ping - check bot ping status
|
|
|
|
|
» /uptime - check bot uptime status
|
|
|
|
|
» /sysinfo - check bot system information
|
|
|
|
|
|
2021-09-10 14:34:05 +00:00
|
|
|
|
💡 SUDO ONLY:
|
|
|
|
|
|
|
|
|
|
» /rmd - remove all downloaded files
|
|
|
|
|
» /rmw - remove all downloaded raw files
|
|
|
|
|
» /leaveall - order assistant leave from all group
|
|
|
|
|
|
2021-09-09 01:18:24 +00:00
|
|
|
|
⚡ __Maintained by Veez Project Team__""",
|
|
|
|
|
reply_markup=InlineKeyboardMarkup(
|
|
|
|
|
[[
|
|
|
|
|
InlineKeyboardButton(
|
|
|
|
|
"🏡 Go Back", callback_data="cbstart")
|
|
|
|
|
]]
|
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Client.on_callback_query(filters.regex("cls"))
|
|
|
|
|
async def close(_, query: CallbackQuery):
|
|
|
|
|
await query.message.delete()
|