forgot
This commit is contained in:
parent
cc7da7e1e6
commit
afe277a7be
@ -180,7 +180,7 @@ async def unmute(client, m: Message):
|
|||||||
async def cbpause(_, query: CallbackQuery):
|
async def cbpause(_, query: CallbackQuery):
|
||||||
a = await _.get_chat_member(query.message.chat.id, query.from_user.id)
|
a = await _.get_chat_member(query.message.chat.id, query.from_user.id)
|
||||||
if not a.can_manage_voice_chats:
|
if not a.can_manage_voice_chats:
|
||||||
return await query.answer("💡 only admin with manage voice chats permission that can tap this button !")
|
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
|
chat_id = query.message.chat.id
|
||||||
if chat_id in QUEUE:
|
if chat_id in QUEUE:
|
||||||
try:
|
try:
|
||||||
@ -198,7 +198,7 @@ async def cbpause(_, query: CallbackQuery):
|
|||||||
async def cbresume(_, query: CallbackQuery):
|
async def cbresume(_, query: CallbackQuery):
|
||||||
a = await _.get_chat_member(query.message.chat.id, query.from_user.id)
|
a = await _.get_chat_member(query.message.chat.id, query.from_user.id)
|
||||||
if not a.can_manage_voice_chats:
|
if not a.can_manage_voice_chats:
|
||||||
return await query.answer("💡 only admin with manage voice chats permission that can tap this button !")
|
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
|
chat_id = query.message.chat.id
|
||||||
if chat_id in QUEUE:
|
if chat_id in QUEUE:
|
||||||
try:
|
try:
|
||||||
@ -216,7 +216,7 @@ async def cbresume(_, query: CallbackQuery):
|
|||||||
async def cbstop(_, query: CallbackQuery):
|
async def cbstop(_, query: CallbackQuery):
|
||||||
a = await _.get_chat_member(query.message.chat.id, query.from_user.id)
|
a = await _.get_chat_member(query.message.chat.id, query.from_user.id)
|
||||||
if not a.can_manage_voice_chats:
|
if not a.can_manage_voice_chats:
|
||||||
return await query.answer("💡 only admin with manage voice chats permission that can tap this button !")
|
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
|
chat_id = query.message.chat.id
|
||||||
if chat_id in QUEUE:
|
if chat_id in QUEUE:
|
||||||
try:
|
try:
|
||||||
@ -233,7 +233,7 @@ async def cbstop(_, query: CallbackQuery):
|
|||||||
async def cbmute(_, query: CallbackQuery):
|
async def cbmute(_, query: CallbackQuery):
|
||||||
a = await _.get_chat_member(query.message.chat.id, query.from_user.id)
|
a = await _.get_chat_member(query.message.chat.id, query.from_user.id)
|
||||||
if not a.can_manage_voice_chats:
|
if not a.can_manage_voice_chats:
|
||||||
return await query.answer("💡 only admin with manage voice chats permission that can tap this button !")
|
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
|
chat_id = query.message.chat.id
|
||||||
if chat_id in QUEUE:
|
if chat_id in QUEUE:
|
||||||
try:
|
try:
|
||||||
@ -251,7 +251,7 @@ async def cbmute(_, query: CallbackQuery):
|
|||||||
async def cbunmute(_, query: CallbackQuery):
|
async def cbunmute(_, query: CallbackQuery):
|
||||||
a = await _.get_chat_member(query.message.chat.id, query.from_user.id)
|
a = await _.get_chat_member(query.message.chat.id, query.from_user.id)
|
||||||
if not a.can_manage_voice_chats:
|
if not a.can_manage_voice_chats:
|
||||||
return await query.answer("💡 only admin with manage voice chats permission that can tap this button !")
|
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
|
chat_id = query.message.chat.id
|
||||||
if chat_id in QUEUE:
|
if chat_id in QUEUE:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user