message

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package message 为插件 SDK 用户暴露 AnyBot 的协议中立消息模型。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain = coremsg.Chain

Chain 是按顺序排列的协议中立消息段。

func New

func New(segments ...Segment) Chain

New 根据消息段构造新的消息链。

type Segment

type Segment = coremsg.Segment

Segment 表示一个协议中立的消息段。

func Image

func Image(file string) Segment

Image 创建图片消息段。

func Raw

func Raw(kind string, data map[string]any) Segment

Raw 创建带自定义类型和数据的消息段。

func Text

func Text(text string) Segment

Text 创建纯文本消息段。

func Video

func Video(file string) Segment

Video 创建视频消息段。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL