dragxd commited on
Commit
56006d3
·
1 Parent(s): 4238b5d

Fix /webplay to send mini web app button in a new message (Telegram limitation)

Browse files
Files changed (1) hide show
  1. DragMusic/plugins/play/play.py +2 -1
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.edit_text(
 
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"))]]