Push message to from anywhere to your bot through webhook.
Project description
nonebot-plugin-report
Push message to from anywhere to your bot through webhook.
功能
该插件提供了一个位于 /report
的 webhook,通过此路由可向 bot 推送消息,实现消息推送机器人的功能
使用
webhook template
// POST /report
{
"token": "your token here",
"title": "report title",
"content": "report content", // *required
"send_to": "send to"
}
字段
token
: 令牌,当与设置的 REPORT_TOKEN
相同时才会推送消息,否则返回 403
title
: 消息标题
content
: 消息内容,必需字段
send_to
: 推送对象。若为 null
则推送给所有超管;若为字符串则将其视为推送对象 user_id;若为字符串列表同上
配置
REPORT_TOKEN
: 令牌,若不设置则不会进行验证
REPORT_ROUTE
: 推送路由,默认为 /report
,若出现路由冲突可以更换该值
其它
- 向 webhook 发送 POST 请求
- 仅支持发送纯文本消息
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot-plugin-report-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cebd80882673caba6078c22bfe7e21ebc3f0dad88903c3d739ce1dddd25bd8ee |
|
MD5 | 5f2c47b40f06123152ef027996082005 |
|
BLAKE2b-256 | 5d48795c6eb7752ddbdb8955077ce575368b8ed41dc3987769f9443b877b8d5c |
Close
Hashes for nonebot_plugin_report-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f74f8056f748c2a83a752c0f664c93468b836b0f7c4f2206ce4057b995f3d08a |
|
MD5 | ae837a36610cb1553a7b57b761cb514c |
|
BLAKE2b-256 | edc998e273701202a9ec3f37e6b479e64debf1388e95edd19777cbdbd8e57c71 |