onebot

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotStatus

type BotStatus struct {
	Online bool `json:"online"`
	Good   bool `json:"good"`
}

type OneBotChannel

type OneBotChannel struct {
	*channels.BaseChannel
	// contains filtered or unexported fields
}

func NewOneBotChannel

func NewOneBotChannel(cfg config.OneBotConfig, messageBus *bus.MessageBus) (*OneBotChannel, error)

func (*OneBotChannel) ReactToMessage

func (c *OneBotChannel) ReactToMessage(ctx context.Context, chatID, messageID string) (func(), error)

ReactToMessage implements channels.ReactionCapable. It adds an emoji reaction (ID 289) to group messages and returns an undo function. Private messages return a no-op since reactions are only meaningful in groups.

func (*OneBotChannel) Send

func (*OneBotChannel) SendMedia

func (c *OneBotChannel) SendMedia(ctx context.Context, msg bus.OutboundMediaMessage) error

SendMedia implements the channels.MediaSender interface.

func (*OneBotChannel) Start

func (c *OneBotChannel) Start(ctx context.Context) error

func (*OneBotChannel) Stop

func (c *OneBotChannel) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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