vocechat

package
v0.0.0-...-64f0c94 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	// contains filtered or unexported fields
}

func New

func New(url, key string, port ...int) *Bot

func (*Bot) Run

func (b *Bot) Run()

func (*Bot) SendFile

func (b *Bot) SendFile(gid int64, path string) (err error)

func (*Bot) SendText

func (b *Bot) SendText(gid int64, text string) (err error)

func (*Bot) SetCallback

func (b *Bot) SetCallback(cfunc Callback)

func (*Bot) Upload

func (b *Bot) Upload(data []byte, filename string, content_type ...string) (path string, err error)

type Callback

type Callback func(b *Bot, gid int64, msg string)

Jump to

Keyboard shortcuts

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