Skip to main content

Notification OneBot 11 HTTP API channel

Project description

notification_onebot

AUTO-MAS 通知插件 - OneBot 11 HTTP API 通道

功能

通过 OneBot 11 标准 HTTP API 发送通知消息,支持:

  • 私聊消息(send_private_msg
  • 群消息(send_group_msg
  • 多目标同时推送
  • Access Token 鉴权
  • text / json 两种消息载荷格式

配置说明

字段 类型 说明
enabled bool 是否启用
api_url string OneBot HTTP API 地址,如 http://127.0.0.1:5700
access_token string Access Token(可留空)
targets list 通知目标列表

目标配置

字段 类型 说明
name string 目标名称
enabled bool 是否启用
target_type private / group 私聊或群聊
target_id int QQ 号或群号
message_format text / json 消息格式。text 发送字符串消息;json 发送 OneBot 消息段数组

message_format 的 schema 枚举是 textjson。如果你希望发送 CQ 码,应该使用 text,并由目标 OneBot 实现按字符串消息解析。

兼容的 OneBot 实现

  • go-cqhttp
  • OpenShamrock
  • Lagrange
  • LLOneBot
  • NapCat
  • 其他兼容 OneBot 11 标准的实现

依赖

  • notification 主插件(提供 notify 服务)
  • httpx

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

automas_notification_onebot-0.0.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

automas_notification_onebot-0.0.3-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file automas_notification_onebot-0.0.3.tar.gz.

File metadata

File hashes

Hashes for automas_notification_onebot-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d2aac3c1de23663759419ae3e1679263c86d38cae9f9baccea0c9e1faac09729
MD5 89aea12f113d4272ae111f1e718119d8
BLAKE2b-256 14b9054215de59b6dc2a24bd55432ff7368326ddf0eecfd8810ca1c2fb1d1ae2

See more details on using hashes here.

Provenance

The following attestation bundles were made for automas_notification_onebot-0.0.3.tar.gz:

Publisher: publish.yml on Alirea10/automas_notification_onebot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file automas_notification_onebot-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for automas_notification_onebot-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2e9f3e52c19399cdc9b01d7dbf5940b01e662474876235e7c85dd269bf6f2504
MD5 6c7622f4253e7b74effa868f265882bd
BLAKE2b-256 93cb6077d201c2038ac64c4a902ad04980ab9d3492a538740cff6b6556562f64

See more details on using hashes here.

Provenance

The following attestation bundles were made for automas_notification_onebot-0.0.3-py3-none-any.whl:

Publisher: publish.yml on Alirea10/automas_notification_onebot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page