adapters

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAdapter

func GetAdapter(name string) (bot.Adapter, error)

func NewLark

func NewLark() bot.Adapter

func NewTelegram

func NewTelegram() bot.Adapter

Types

type AdapterConstruct

type AdapterConstruct func() bot.Adapter

type Lark

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

func (*Lark) Adapter

func (l *Lark) Adapter() joe.Module

func (*Lark) GetFunMap

func (l *Lark) GetFunMap() template.FuncMap

func (*Lark) GetHandlers added in v0.2.1

func (l *Lark) GetHandlers(jBot *joe.Bot) []any

func (*Lark) GetMe added in v0.2.1

func (l *Lark) GetMe(ctx context.Context) (*LarkBotInfo, error)

func (*Lark) Name

func (l *Lark) Name() string

type LarkBotInfo added in v0.2.1

type LarkBotInfo struct {
	ActivateStatus int           `json:"activate_status"`
	AppName        string        `json:"app_name"`
	AvatarUrl      string        `json:"avatar_url"`
	IpWhiteList    []interface{} `json:"ip_white_list"`
	OpenId         string        `json:"open_id"`
}

type LarkBotInfoResponse added in v0.2.1

type LarkBotInfoResponse struct {
	larkcore.CodeError
	Bot LarkBotInfo `json:"bot"`
}

type Telegram

type Telegram struct {
}

func (*Telegram) Adapter

func (tg *Telegram) Adapter() joe.Module

func (*Telegram) GetFunMap

func (tg *Telegram) GetFunMap() template.FuncMap

func (*Telegram) GetHandlers added in v0.2.1

func (tg *Telegram) GetHandlers(jBot *joe.Bot) []any

func (*Telegram) Name

func (tg *Telegram) Name() string

Jump to

Keyboard shortcuts

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