from pyrogram import Client, filters from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton from ci import me help_msg = """ Grasscutters 👩🏻‍💼 » /find <名称> - 查找物品/角色对应的 id <只显示前五个匹配项> /find 枫原万叶 /find 枫原万叶的命座 """ @Client.on_message(filters.incoming & filters.command(["help", f"help@{me.username}"])) async def help_command(_: Client, message: Message): await message.reply( help_msg, reply_markup=InlineKeyboardMarkup( [[InlineKeyboardButton("GitHub", url="https://github.com/Grasscutters/Grasscutter")]] ), disable_web_page_preview=True, quote=True, )