feishu

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeishuBot

type FeishuBot struct {
	Platform carrota.PlatformType
	BotName  string
	BotID    string
	// contains filtered or unexported fields
}

func NewFeishuBot

func NewFeishuBot(name string, id string) *FeishuBot

func (*FeishuBot) AddHandlerChatMemberBotAdded

func (bot *FeishuBot) AddHandlerChatMemberBotAdded()

func (*FeishuBot) AddHandlerIMMessageReceive

func (bot *FeishuBot) AddHandlerIMMessageReceive()

func (*FeishuBot) AddHandlerP2PChatCreate

func (bot *FeishuBot) AddHandlerP2PChatCreate()

func (*FeishuBot) Build

func (bot *FeishuBot) Build()

func (*FeishuBot) DeleteMessageReaction

func (bot *FeishuBot) DeleteMessageReaction(msgID string, reactionID string)

func (*FeishuBot) GetBotInfo

func (bot *FeishuBot) GetBotInfo() *lark.GetBotInfoResp

func (*FeishuBot) GetUser

func (bot *FeishuBot) GetUser(openID string) *lark.GetUserResp

func (*FeishuBot) GetUserList

func (bot *FeishuBot) GetUserList() []*lark.GetUserListRespItem

func (*FeishuBot) ReplyRawMessage

func (bot *FeishuBot) ReplyRawMessage(msgID string, msgType string, msg string)

func (*FeishuBot) Runhandler

func (bot *FeishuBot) Runhandler(callbackPath string)

func (*FeishuBot) SendRawMessage

func (bot *FeishuBot) SendRawMessage(receiveIDType string, receiveID string, msgType string, msg string)

func (*FeishuBot) SendRawMessageToGroup

func (bot *FeishuBot) SendRawMessageToGroup(groupID string, msgType string, msg string)

func (*FeishuBot) SendRawMessageToUser

func (bot *FeishuBot) SendRawMessageToUser(userID string, msgType string, msg string)

func (*FeishuBot) UploadImage

func (bot *FeishuBot) UploadImage(imageType string, image io.Reader) string

func (*FeishuBot) WithAppInfo

func (bot *FeishuBot) WithAppInfo(appID string, appSecret string) *FeishuBot

func (*FeishuBot) WithCallBackInfo

func (bot *FeishuBot) WithCallBackInfo(encryptKey string, verificationToken string) *FeishuBot

func (*FeishuBot) WithPluginCenter

func (bot *FeishuBot) WithPluginCenter(pc *plugincenter.PluginCenter) *FeishuBot

Jump to

Keyboard shortcuts

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