test
This commit is contained in:
parent
91bb747cd3
commit
28efdb928c
@ -165,11 +165,16 @@ async def unmute(client, m: Message):
|
|||||||
command(["volume", f"volume@{BOT_USERNAME}", "vol"]) & other_filters
|
command(["volume", f"volume@{BOT_USERNAME}", "vol"]) & other_filters
|
||||||
)
|
)
|
||||||
@authorized_users_only
|
@authorized_users_only
|
||||||
async def change_volume(client, m: Message):
|
async def unmute(client, m: Message):
|
||||||
range = m.command[1]
|
range = m.command[1]
|
||||||
chat_id = m.chat.id
|
chat_id = m.chat.id
|
||||||
|
if chat_id in QUEUE:
|
||||||
try:
|
try:
|
||||||
await call_py.change_volume_call(chat_id, volume=int(range))
|
await call_py.change_volume_call(chat_id, volume: int(range))
|
||||||
await m.reply(f"✅ **volume set to** `{range}`%")
|
await m.reply(
|
||||||
|
f"✅ **volume set to** `{range}`%"
|
||||||
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
await m.reply(f"🚫 **error:**\n\n{e}")
|
await m.reply(f"🚫 **error:**\n\n`{e}`")
|
||||||
|
else:
|
||||||
|
await m.reply("❌ **nothing in streaming**")
|
||||||
|
Loading…
Reference in New Issue
Block a user