2022-04-29 15:13:20 +00:00
|
|
|
from pyrogram import Client, filters
|
|
|
|
from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton
|
|
|
|
|
|
|
|
|
|
|
|
@Client.on_message(filters.incoming &
|
2022-05-01 03:00:42 +00:00
|
|
|
filters.regex(r"^教程"))
|
2022-04-29 15:13:20 +00:00
|
|
|
async def jc(client: Client, message: Message):
|
2022-05-01 03:00:42 +00:00
|
|
|
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")],
|
|
|
|
]))
|