iShotaBot/modules/start.py

30 lines
880 B
Python
Raw Normal View History

2021-11-28 14:55:10 +00:00
from pyrogram import Client, filters
from pyrogram.types import Message
from defs.button import gen_button, Button
des = """本机器人特性:
2022-10-03 08:31:20 +00:00
解析 bilibili 视频动态
解析 twitter 推文用户
解析 lofter 日志用户
汇率查询
2021-11-28 14:55:10 +00:00
复读机3
答案之书
鲁迅说过
我有个朋友
简易版问与答
"""
2022-07-25 09:35:54 +00:00
@Client.on_message(filters.incoming & filters.private &
2021-11-28 14:55:10 +00:00
filters.command(["start"]))
2022-07-25 09:35:54 +00:00
async def start_command(_: Client, message: Message):
2021-11-28 14:55:10 +00:00
"""
回应机器人信息
"""
await message.reply(des,
quote=True,
reply_markup=gen_button(
2022-07-25 09:35:54 +00:00
[Button(0, "Gitlab", "https://gitlab.com/Xtao-Labs/iShotaBot"),
Button(0, "Github", "https://github.com/Xtao-Labs/iShotaBot")]))