Fix: Ensure /webplay never uses edit_text with buttons, always sends mini web app button in new message
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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(
|