message

package
v0.0.0-dev.2.5a5af81 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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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