Fix /webplay to use Telegram mini web app button
Browse files
DragMusic/plugins/play/play.py
CHANGED
@@ -2,7 +2,7 @@ import random
|
|
2 |
import string
|
3 |
|
4 |
from pyrogram import filters
|
5 |
-
from pyrogram.types import InlineKeyboardMarkup, InputMediaPhoto, Message, InlineKeyboardButton
|
6 |
from pytgcalls.exceptions import NoActiveGroupCall
|
7 |
|
8 |
import config
|
@@ -475,7 +475,7 @@ async def webplay_command(client, message: Message):
|
|
475 |
await mystic.edit_text(
|
476 |
"Song is ready in the mini web app!",
|
477 |
reply_markup=InlineKeyboardMarkup(
|
478 |
-
[[InlineKeyboardButton("Open Player", url="https://huggingface.co/spaces/dragonxd1/DragMusicV2")]]
|
479 |
)
|
480 |
)
|
481 |
|
|
|
2 |
import string
|
3 |
|
4 |
from pyrogram import filters
|
5 |
+
from pyrogram.types import InlineKeyboardMarkup, InputMediaPhoto, Message, InlineKeyboardButton, WebAppInfo
|
6 |
from pytgcalls.exceptions import NoActiveGroupCall
|
7 |
|
8 |
import config
|
|
|
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"))]]
|
479 |
)
|
480 |
)
|
481 |
|