from pyrogram import Client, filters from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton @Client.on_message(filters.incoming & filters.regex(r"^教程")) async def jc(client: Client, message: Message): await client.send_message( message.chat.id, "以下是教程链接", reply_to_message_id=message.id if not message.reply_to_message else message.reply_to_message.id, disable_web_page_preview=True, reply_markup=InlineKeyboardMarkup( [ [InlineKeyboardButton("中文简易教程", url="https://telegra.ph/Grasscutter-CN-04-21"), InlineKeyboardButton("memorz", url="https://memorz.top/archives/112")], [InlineKeyboardButton("otoo", url="https://blog.otoo.top/Blog/Genshin2-6-Grasscutters-Multiplayer"), InlineKeyboardButton("tomys", url="https://blog.tomys.top/2022-04/GenshinTJ")], [InlineKeyboardButton("chitang 安卓部署", url="https://www.chitang.tech/posts/grasscutter-android")], ]))