from pyrogram import Client, filters from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery from config import ASSISTANT_NAME as bn @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 @{bn} to your group. 4.) turn on the voice chat first before start to stream video. 5.) type /vstream (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( "โ” 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) ๐Ÿ‘ฉ๐Ÿปโ€โœˆ๏ธ ยป [Achu Biju](https://github.com/Achu2234) ๐Ÿคต๐Ÿป ยป [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 ) @Client.on_callback_query(filters.regex("cblist")) async def cblist(_, query: CallbackQuery): await query.edit_message_text( f"""๐Ÿ“š All Command List: ยป /vstream (reply to video or yt url) - to stream video ยป /vstop - end the video streaming ยป /song (song name) - download song from YT ยป /vsong (video name) - download video from YT ยป /lyric (song name) - lyric scrapper ๐ŸŽŠ 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 โšก __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()