插件类
需单独申请权限
所有接口都需带入 Authorization
统一响应内容
200请求成功403无权限422那里验证错误了
给 tg 群组发送消息
POST /api/plug/sendTelegramMessage
请求参数
tostring|int发送对象group群组notify通知频道int类型时则为具体的用户
textstring发送内容parse_modestring发送格式 与tg相同HTMLMarkdownMarkdownV2
destroy_secondint消息销毁时间(秒) 最大不可超过86400
测试时可以将 to 传为自己的 tg id
示例
bash
curl --location 'http://127.0.0.1:8000/api/plug/sendTelegramMessage' --header 'Authorization: ••••••' --form 'to="group"' --form 'text="发送内容"' --form 'parse_mode="HTML"' --form 'destroy_second="10"'