Add jc command

This commit is contained in:
xtaodada 2022-04-29 23:13:20 +08:00
parent e09d0bf09d
commit 3113473fdb
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

19
plugins/jc.py Normal file
View File

@ -0,0 +1,19 @@
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/")],
]))