qq

package
v0.0.0-...-8155ea7 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: GPL-2.0, GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QQChannel

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

func NewQQChannel

func NewQQChannel(cfg config.QQConfig, messageBus *bus.MessageBus) (*QQChannel, error)

func (*QQChannel) Send

func (c *QQChannel) Send(ctx context.Context, msg bus.OutboundMessage) error

func (*QQChannel) SendMedia

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

SendMedia implements the channels.MediaSender interface. QQ RichMediaMessage requires an HTTP/HTTPS URL — local file paths are not supported. If part.Ref is already an http(s) URL it is used directly; otherwise we try the media store, and skip with a warning if the resolved path is not an HTTP URL.

func (*QQChannel) Start

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

func (*QQChannel) StartTyping

func (c *QQChannel) StartTyping(ctx context.Context, chatID string) (func(), error)

StartTyping implements channels.TypingCapable. It sends an InputNotify (msg_type=6) immediately and re-sends every 8 seconds. The returned stop function is idempotent and cancels the goroutine.

func (*QQChannel) Stop

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

Jump to

Keyboard shortcuts

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