bots

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusNone = iota
	StatusBind1
	StatusBind2
)

Variables

View Source
var (
	UserStatus       map[int64]int
	UserClientId     map[int64]string
	UserClientSecret map[int64]string
)

Functions

func InitTask

func InitTask()

func SignTask

func SignTask()

func Start added in v0.4.0

func Start()

Types

type ErrClient added in v0.4.0

type ErrClient struct {
	*model.Client
	Err error
}

func Sign added in v0.4.0

func Sign(clients []*model.Client) []*ErrClient

type Msg

type Msg struct {
	To      tb.Recipient
	What    interface{}
	Options []interface{}
}

type Sender

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

func NewSender

func NewSender() *Sender

func (*Sender) Init

func (s *Sender) Init(goroutine int)

func (*Sender) SendMessage

func (s *Sender) SendMessage(to tb.Recipient, what interface{}, options ...interface{})

func (*Sender) SendMessageByID

func (s *Sender) SendMessageByID(ID int64, what interface{}, options ...interface{})

func (*Sender) Stop

func (s *Sender) Stop()

Jump to

Keyboard shortcuts

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