bot

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const GetBotInfoAPI = "/open-apis/bot/v3/info"

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot interface {
	GetBotInfo() (resp *GetBotInfoResponse, err error)
}

func New

func New(c client.Client) Bot

type GetBotInfoResponse

type GetBotInfoResponse struct {
	ActivateStatus int      `json:"activate_status"`
	AppName        string   `json:"app_name"`
	AvatarURL      string   `json:"avatar_url"`
	IPWhiteList    []string `json:"ip_white_list"`
	OpenID         string   `json:"open_id"`
}

func GetBotInfo

func GetBotInfo(client client.Client) (resp *GetBotInfoResponse, err error)

Jump to

Keyboard shortcuts

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