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.4.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.4-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for automas_notification_onebot-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9b012ae2fe6fd37b3bcda548092431165ef0f73921f07ef6e00cf3f8b9c436d6
MD5 2ae6ddff8d14e814e6994376906d4842
BLAKE2b-256 6a0a4f0023d3b08766401dbf847aa1970295184ca5d5935a83711ac848422cc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for automas_notification_onebot-0.0.4.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.4-py3-none-any.whl.

File metadata

File hashes

Hashes for automas_notification_onebot-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 108d0fc6dd15ac417e20971ac1e78cc3e464ef3f553d579b68560f7d0c11c986
MD5 50deff4244dd8a0bff955a68e28740c0
BLAKE2b-256 1ee702adde0b63b606f48b64d98b3b981bc18a1ea346ba39840f9d752a6d5ce8

See more details on using hashes here.

Provenance

The following attestation bundles were made for automas_notification_onebot-0.0.4-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