api

package
v0.0.0-...-7d7fa1e Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI() *API

func (*API) AddAPIMessageSend

func (api *API) AddAPIMessageSend(path string)

func (*API) GetBotFromBotID

func (api *API) GetBotFromBotID(botID string) (*feishu.FeishuBot, error)

func (*API) WithBasePath

func (api *API) WithBasePath(basepath string) *API

func (*API) WithFeishuBot

func (api *API) WithFeishuBot(bot *feishu.FeishuBot) *API

type APIMessageSendRequest

type APIMessageSendRequest struct {
	Agent     string   `json:"agent"`
	GroupID   string   `json:"group_id"`
	UserID    string   `json:"user_id"`
	MessageID string   `json:"message_id"`
	Message   []string `json:"message"`
}

type APIMessageSendResponse

type APIMessageSendResponse struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data string `json:"data"`
}

Jump to

Keyboard shortcuts

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