none
This commit is contained in:
parent
c1b3ac447f
commit
d0ce0baa57
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user