Lawnmower/plugins/zy.py
2022-05-01 11:00:42 +08:00

22 lines
1.3 KiB
Python

from pyrogram import Client, filters
from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton
@Client.on_message(filters.incoming &
filters.regex(r"^资源"))
async def zy(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("Resources 文件夹资源", url="https://github.com/Koko-boya/Grasscutter_Resources")],
[InlineKeyboardButton("安卓免 root 畅玩",
url="https://github.com/FENGXIpersion/Grasscutters_Android/releases/tag/java")],
[InlineKeyboardButton("圣遗物带词条生成器(英文)", url="https://gc-tools.exzork.me/artifact")],
[InlineKeyboardButton("稳定版整合", url="https://t.me/Grasscutter_CN/4"),
InlineKeyboardButton("开发版整合", url="https://t.me/c/1753135747/8549"),
InlineKeyboardButton("PC启动器", url="https://t.me/Grasscutter_CN/11")],
]))