Lawnmower/plugins/jc.py

20 lines
1.2 KiB
Python
Raw Normal View History

2022-04-29 15:13:20 +00:00
from pyrogram import Client, filters
from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton
from ci import me
@Client.on_message(filters.incoming &
filters.command(["jc", f"jc@{me.username}"]))
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/")],
]))