use alert
This commit is contained in:
levina 2022-02-11 09:11:32 +07:00 committed by GitHub
parent 158a14c3f7
commit d6692fc15f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,7 +252,7 @@ async def data_stream_markup(_, query: CallbackQuery):
if chat_id in QUEUE:
try:
if not await is_music_playing(chat_id):
await query.answer(" The music is already paused.")
await query.answer(" The music is already paused.", show_alert=True)
return
await calls.pause_stream(chat_id)
await music_off(chat_id)
@ -272,11 +272,11 @@ async def data_stream_markup(_, query: CallbackQuery):
if chat_id in QUEUE:
try:
if await is_music_playing(chat_id):
await query.answer(" The music is already resumed.")
await query.answer(" The music is already resumed.", show_alert=True)
return
await calls.resume_stream(chat_id)
await music_on(chat_id)
await query.answer(" The music has resumed !\n\n» to pause the music click on pause button !", show_alert=True)
await query.answer("▶️ The music has resumed !\n\n» to pause the music click on pause button !", show_alert=True)
except Exception as e:
await query.edit_message_text(f"🚫 **error:**\n\n`{e}`", reply_markup=close_mark)
else:
@ -310,7 +310,7 @@ async def data_stream_markup(_, query: CallbackQuery):
if chat_id in QUEUE:
try:
if not await is_music_playing(chat_id):
await query.answer(" The stream userbot is already muted.")
await query.answer(" The stream userbot is already muted.", show_alert=True)
return
await calls.mute_stream(chat_id)
await music_off(chat_id)
@ -330,7 +330,7 @@ async def data_stream_markup(_, query: CallbackQuery):
if chat_id in QUEUE:
try:
if await is_music_playing(chat_id):
await query.answer(" The stream userbot is already unmuted.")
await query.answer(" The stream userbot is already unmuted.", show_alert=True)
return
await calls.unmute_stream(chat_id)
await music_on(chat_id)