dragxd commited on
Commit
563ca88
·
1 Parent(s): 56006d3

Fix: Ensure /webplay never uses edit_text with buttons, always sends mini web app button in new message

Browse files
Files changed (1) hide show
  1. DragMusic/plugins/play/play.py +5 -1
DragMusic/plugins/play/play.py CHANGED
@@ -472,7 +472,11 @@ async def webplay_command(client, message: Message):
472
  "thumb": details.get("thumb"),
473
  }
474
  nowplaying.set_current_song(song_info)
475
- await mystic.delete()
 
 
 
 
476
  await message.reply(
477
  "Song is ready in the mini web app!",
478
  reply_markup=InlineKeyboardMarkup(
 
472
  "thumb": details.get("thumb"),
473
  }
474
  nowplaying.set_current_song(song_info)
475
+ # Delete the status message before sending the web app button
476
+ try:
477
+ await mystic.delete()
478
+ except:
479
+ pass
480
  await message.reply(
481
  "Song is ready in the mini web app!",
482
  reply_markup=InlineKeyboardMarkup(