client

package
v0.0.0-...-aaf77d9 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotsResult

type BotsResult struct {
	Bots []struct {
		Id   string `json:"id"`
		Name string `json:"name"`
	} `json:"bots"`
}

type HelpResult

type HelpResult struct {
	Bots []struct {
		Id   string `json:"id"`
		Name string `json:"name"`
	} `json:"bots"`
}

type Instruct

type Instruct struct {
	No       string `json:"no"`
	Bot      string `json:"bot"`
	Flag     string `json:"flag"`
	Content  any    `json:"content"`
	ExpireAt string `json:"expire_at"`
}

type InstructResult

type InstructResult struct {
	Instruct []Instruct `json:"instruct"`
}

type Tinode

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

func NewTinode

func NewTinode(accessToken string) *Tinode

func (*Tinode) Agent

func (v *Tinode) Agent(content types.AgentContent) (string, error)

func (*Tinode) Bots

func (v *Tinode) Bots() (*BotsResult, error)

func (*Tinode) Help

func (v *Tinode) Help() (*HelpResult, error)

func (*Tinode) Pull

func (v *Tinode) Pull() (*InstructResult, error)

Jump to

Keyboard shortcuts

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