iShotaBot/modules/start.py
2022-07-25 17:35:54 +08:00

27 lines
785 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from pyrogram import Client, filters
from pyrogram.types import Message
from defs.button import gen_button, Button
des = """本机器人特性:
★ 解析 bilibili 视频
★ 复读机3条
★ 答案之书
★ 鲁迅说过
★ 我有个朋友
★ 简易版问与答
"""
@Client.on_message(filters.incoming & filters.private &
filters.command(["start"]))
async def start_command(_: Client, message: Message):
"""
回应机器人信息
"""
await message.reply(des,
quote=True,
reply_markup=gen_button(
[Button(0, "Gitlab", "https://gitlab.com/Xtao-Labs/iShotaBot"),
Button(0, "Github", "https://github.com/Xtao-Labs/iShotaBot")]))