change
This commit is contained in:
parent
f3701d7f95
commit
126376ef99
@ -1,135 +1,101 @@
|
|||||||
# Copyright (C) 2021 By VeezMusicProject
|
# Copyright (C) 2021 By VeezMusicProject
|
||||||
|
|
||||||
from pyrogram import Client, filters
|
from pyrogram import Client, filters
|
||||||
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery
|
from pyrogram.types import CallbackQuery, InlineKeyboardButton, InlineKeyboardMarkup
|
||||||
|
from config import (
|
||||||
from config import Veez
|
ASSISTANT_NAME,
|
||||||
|
BOT_NAME,
|
||||||
|
BOT_USERNAME,
|
||||||
@Client.on_callback_query(filters.regex("cbguide"))
|
GROUP_SUPPORT,
|
||||||
async def cbguide(_, query: CallbackQuery):
|
OWNER_NAME,
|
||||||
await query.edit_message_text(
|
UPDATES_CHANNEL,
|
||||||
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.
|
|
||||||
3.) add @{Veez.ASSISTANT_NAME } to your group.
|
|
||||||
4.) turn on the voice chat first before start to stream video.
|
|
||||||
5.) type /vplay (reply to video) to start streaming.
|
|
||||||
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"))
|
@Client.on_callback_query(filters.regex("cbstart"))
|
||||||
async def cbstart(_, query: CallbackQuery):
|
async def cbstart(_, query: CallbackQuery):
|
||||||
await query.edit_message_text(
|
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"""✨ **Welcome [{query.message.chat.first_name}](tg://user?id={query.message.chat.id}) !**\n
|
||||||
f"video chats easily.**\n\n❔ **To find out how to use me, please press the help button below** 👇🏻",
|
💭 **[{BOT_NAME}](https://t.me/{BOT_USERNAME}) allows you to play music on groups through the new Telegram's voice chats!**
|
||||||
|
|
||||||
|
💡 **Find out all the Bot's commands and how they work by clicking on the » 📚 Commands button!**
|
||||||
|
|
||||||
|
❔ **To know how to use this bot, please click on the » ❓ Basic Guide button!**""",
|
||||||
reply_markup=InlineKeyboardMarkup(
|
reply_markup=InlineKeyboardMarkup(
|
||||||
[[
|
[
|
||||||
InlineKeyboardButton(
|
[
|
||||||
"➕ Add me to your Group ➕", url=f"https://t.me/{Veez.BOT_USERNAME}?startgroup=true")
|
InlineKeyboardButton(
|
||||||
], [
|
"➕ Add me to your Group ➕",
|
||||||
InlineKeyboardButton(
|
url=f"https://t.me/{BOT_USERNAME}?startgroup=true",
|
||||||
"❔ HOW TO USE THIS BOT", callback_data="cbguide")
|
)
|
||||||
], [
|
],
|
||||||
InlineKeyboardButton(
|
[InlineKeyboardButton("❓ Basic Guide", callback_data="cbhowtouse")],
|
||||||
"🌐 Terms & Condition", callback_data="cbinfo")
|
[
|
||||||
], [
|
InlineKeyboardButton("📚 Commands", callback_data="cbcmds"),
|
||||||
InlineKeyboardButton(
|
InlineKeyboardButton("❤ Donate", url=f"https://t.me/{OWNER_NAME}"),
|
||||||
"💬 Group", url=f"https://t.me/{Veez.GROUP_NAME}"),
|
],
|
||||||
InlineKeyboardButton(
|
[
|
||||||
"📣 Channel", url=f"https://t.me/{Veez.CHANNEL_NAME}")
|
InlineKeyboardButton(
|
||||||
], [
|
"👥 Official Group", url=f"https://t.me/{GROUP_SUPPORT}"
|
||||||
InlineKeyboardButton(
|
),
|
||||||
"🧙🏻♂️ Owner", url=f"https://t.me/{Veez.OWNER_NAME}")
|
InlineKeyboardButton(
|
||||||
], [
|
"📣 Official Channel", url=f"https://t.me/{UPDATES_CHANNEL}"
|
||||||
InlineKeyboardButton(
|
),
|
||||||
"📚 All Command List", callback_data="cblist")
|
],
|
||||||
]]
|
[
|
||||||
))
|
InlineKeyboardButton(
|
||||||
|
"🌐 Source Code", url="https://github.com/levina-lab/video-stream"
|
||||||
|
)
|
||||||
@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
|
|
||||||
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)
|
|
||||||
🤵🏻 » [Zxce3](https://github.com/Zxce3)
|
|
||||||
🤵🏻 » [Tofik Denianto](https://github.com/tofikdn)
|
|
||||||
🤵🏻 » [Shohih Abdul](https://github.com/DoellBarr)
|
|
||||||
|
|
||||||
__This bot licensed under GNU-GPL 3.0 License__""",
|
|
||||||
reply_markup=InlineKeyboardMarkup(
|
|
||||||
[[
|
|
||||||
InlineKeyboardButton(
|
|
||||||
"🏡 Go Back", callback_data="cbstart")
|
|
||||||
]]
|
|
||||||
),
|
),
|
||||||
disable_web_page_preview=True
|
disable_web_page_preview=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@Client.on_callback_query(filters.regex("cblist"))
|
@Client.on_callback_query(filters.regex("cbhowtouse"))
|
||||||
async def cblist(_, query: CallbackQuery):
|
async def cbguides(_, query: CallbackQuery):
|
||||||
await query.edit_message_text(
|
await query.edit_message_text(
|
||||||
f"""📚 All Command List:
|
f"""❓ **Basic Guide for using this bot:**
|
||||||
|
|
||||||
» /vplay (reply to video or yt/live url) - to stream video
|
1.) **first, add me to your group.**
|
||||||
» /vstop - stop the video streaming
|
2.) **then promote me as admin and give all permissions except anonymous admin.**
|
||||||
» /song (song name) - download song from YT
|
3.) **add @{ASSISTANT_NAME} to your group or type /userbotjoin to invite her.**
|
||||||
» /vsong (video name) - download video from YT
|
4.) **turn on the video chat first before start to play video.**
|
||||||
» /lyric (song name) - lyric scrapper
|
5.) **all the command list you can see on » 📚 Commands button, find it on start home, tap the » Go Back button below.**
|
||||||
» /vjoin - invite assistant join to your group
|
|
||||||
» /vleave - order assistant leave from your group
|
|
||||||
|
|
||||||
🎊 FUN CMD:
|
💡 **If you have a follow-up questions about this bot, you can tell it on my support chat here: @{GROUP_SUPPORT}**
|
||||||
|
|
||||||
» /asupan - check it by yourself
|
⚡ __Powered by {BOT_NAME} A.I__""",
|
||||||
» /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
|
|
||||||
|
|
||||||
💡 SUDO ONLY:
|
|
||||||
|
|
||||||
» /rmd - remove all downloaded files
|
|
||||||
» /rmw - remove all downloaded raw files
|
|
||||||
» /leaveall - order assistant leave from all group
|
|
||||||
|
|
||||||
⚡ __Maintained by Veez Project Team__""",
|
|
||||||
reply_markup=InlineKeyboardMarkup(
|
reply_markup=InlineKeyboardMarkup(
|
||||||
[[
|
[[InlineKeyboardButton("🔙 Go Back", callback_data="cbstart")]]
|
||||||
InlineKeyboardButton(
|
),
|
||||||
"🏡 Go Back", callback_data="cbstart")
|
)
|
||||||
]]
|
|
||||||
))
|
|
||||||
|
@Client.on_callback_query(filters.regex("cbcmds"))
|
||||||
|
async def cbhelps(_, query: CallbackQuery):
|
||||||
|
await query.edit_message_text(
|
||||||
|
f"""📚 Here is the Commands list:
|
||||||
|
|
||||||
|
» /mplay - play music on voice chat
|
||||||
|
» /vstream - enter the radio link
|
||||||
|
» /gplay - play from other source
|
||||||
|
» /vplay - play video on video chat
|
||||||
|
» /vstream - for m3u8/live link
|
||||||
|
» /vplaylist - show you the playlist
|
||||||
|
» /queue - show you the queue list
|
||||||
|
» /vpause - pause the stream
|
||||||
|
» /vresume - resume the stream
|
||||||
|
» /vskip - switch to next stream
|
||||||
|
» /vstop - stop the streaming
|
||||||
|
» /restart - restart the bot (sudo user only)
|
||||||
|
|
||||||
|
⚡ __Powered by {BOT_NAME} AI__""",
|
||||||
|
reply_markup=InlineKeyboardMarkup(
|
||||||
|
[[InlineKeyboardButton("🔙 Go Back", callback_data="cbstart")]]
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@Client.on_callback_query(filters.regex("cls"))
|
@Client.on_callback_query(filters.regex("cls"))
|
||||||
|
Loading…
Reference in New Issue
Block a user