bots

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 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

func Start()

Types

type ErrClient

type ErrClient struct {
	*model.Client
	Err error
}

func Sign

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