This commit is contained in:
levina 2021-11-01 07:49:12 +07:00 committed by GitHub
parent 91bb747cd3
commit 28efdb928c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
try: if chat_id in QUEUE:
await call_py.change_volume_call(chat_id, volume=int(range)) try:
await m.reply(f"✅ **volume set to** `{range}`%") await call_py.change_volume_call(chat_id, volume: int(range))
except Exception as e: await m.reply(
await m.reply(f"🚫 **error:**\n\n{e}") f"✅ **volume set to** `{range}`%"
)
except Exception as e:
await m.reply(f"🚫 **error:**\n\n`{e}`")
else:
await m.reply("❌ **nothing in streaming**")