Fix /webplay to send mini web app button in a new message (Telegram limitation)
Browse files
DragMusic/plugins/play/play.py
CHANGED
@@ -472,7 +472,8 @@ async def webplay_command(client, message: Message):
|
|
472 |
"thumb": details.get("thumb"),
|
473 |
}
|
474 |
nowplaying.set_current_song(song_info)
|
475 |
-
await mystic.
|
|
|
476 |
"Song is ready in the mini web app!",
|
477 |
reply_markup=InlineKeyboardMarkup(
|
478 |
[[InlineKeyboardButton("Open Player", web_app=WebAppInfo(url="https://huggingface.co/spaces/dragonxd1/DragMusicV2"))]]
|
|
|
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(
|
479 |
[[InlineKeyboardButton("Open Player", web_app=WebAppInfo(url="https://huggingface.co/spaces/dragonxd1/DragMusicV2"))]]
|