qq

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 31 Imported by: ? modules, 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

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(bc *config.Channel, cfg *config.QQSettings, messageBus *bus.MessageBus) (*QQChannel, error)

func (*QQChannel) Send

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

func (*QQChannel) SendMedia

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

SendMedia implements the channels.MediaSender interface. QQ group/C2C media sending is a two-step flow: 1. Upload media to /files using a remote URL or base64-encoded local bytes. 2. Send a msg_type=7 message using the returned file_info.

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

func (*QQChannel) VoiceCapabilities

func (c *QQChannel) VoiceCapabilities() channels.VoiceCapabilities

VoiceCapabilities returns the voice capabilities of the channel.

Jump to

Keyboard shortcuts

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