from pyrogram import Client, filters from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery from config import Veez @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. 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")) 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( [[ InlineKeyboardButton( "āž• Add me to your Group āž•", url=f"https://t.me/{Veez.BOT_USERNAME}?startgroup=true") ], [ InlineKeyboardButton( "ā” HOW TO USE THIS BOT", callback_data="cbguide") ], [ InlineKeyboardButton( "šŸŒ Terms & Condition", callback_data="cbinfo") ], [ InlineKeyboardButton( "šŸ’¬ Group", url="https://t.me/VeezSupportGroup"), InlineKeyboardButton( "šŸ“£ Channel", url="https://t.me/levinachannel") ], [ InlineKeyboardButton( "šŸ‘©šŸ»ā€šŸ’» Developer", url="https://t.me/dlwrml") ], [ 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 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) __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: Ā» /vplay (reply to video or yt/live url) - to stream video Ā» /vstop - stop the video streaming Ā» /song (song name) - download song from YT Ā» /vsong (video name) - download video from YT Ā» /lyric (song name) - lyric scrapper Ā» /vjoin - invite assistant join to your group Ā» /vleave - order assistant leave from your group šŸŽŠ 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 šŸ’” 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( [[ InlineKeyboardButton( "šŸ” Go Back", callback_data="cbstart") ]] )) @Client.on_callback_query(filters.regex("cls")) async def close(_, query: CallbackQuery): await query.message.delete()