diff --git a/program/callback.py b/program/callback.py index 652ed20..12f929d 100644 --- a/program/callback.py +++ b/program/callback.py @@ -1,7 +1,7 @@ # Copyright (C) 2021 By VeezMusicProject -from pyrogram import Client, filters from driver.queues import QUEUE +from pyrogram import Client, filters from pyrogram.types import CallbackQuery, InlineKeyboardButton, InlineKeyboardMarkup from config import ( ASSISTANT_NAME, @@ -173,22 +173,21 @@ async def cbmenu(_, query: CallbackQuery): return await query.answer("šŸ’” only admin with manage voice chats permission that can tap this button !", show_alert=True) chat_id = query.message.chat.id if chat_id in QUEUE: - try: - await query.edit_message_text( - f"āš™ļø **settings of** {query.message.chat.title}\n\nāø : pause stream\nā–¶ļø : resume stream\nšŸ”‡ : mute userbot\nšŸ”Š : unmute userbot\nā¹ : stop stream", - reply_markup=InlineKeyboardMarkup( - [[ - InlineKeyboardButton("ā¹", callback_data="cbstop"), - InlineKeyboardButton("āø", callback_data="cbpause"), - InlineKeyboardButton("ā–¶ļø", callback_data="cbresume"), - ],[ - InlineKeyboardButton("šŸ”‡", callback_data="cbmute"), - InlineKeyboardButton("šŸ”Š", callback_data="cbunmute"), - ],[ - InlineKeyboardButton("šŸ—‘ Close", callback_data="cls")], - ] - ), - ) + await query.edit_message_text( + f"āš™ļø **settings of** {query.message.chat.title}\n\nāø : pause stream\nā–¶ļø : resume stream\nšŸ”‡ : mute userbot\nšŸ”Š : unmute userbot\nā¹ : stop stream", + reply_markup=InlineKeyboardMarkup( + [[ + InlineKeyboardButton("ā¹", callback_data="cbstop"), + InlineKeyboardButton("āø", callback_data="cbpause"), + InlineKeyboardButton("ā–¶ļø", callback_data="cbresume"), + ],[ + InlineKeyboardButton("šŸ”‡", callback_data="cbmute"), + InlineKeyboardButton("šŸ”Š", callback_data="cbunmute"), + ],[ + InlineKeyboardButton("šŸ—‘ Close", callback_data="cls")], + ] + ), + ) else: await query.answer("āŒ nothing is currently streaming", show_alert=True)