chat

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const APIPathBotJoinChat = "/open_api/:project_key/work_item/:work_item_id/bot_join_chat"

Variables

This section is empty.

Functions

This section is empty.

Types

type BotJoinChatInfo

type BotJoinChatInfo struct {
	ChatID string `json:"chat_id"`

	SuccessMembers []string `json:"success_members"`

	FailedMembers []string `json:"failed_members"`
}

type BotJoinChatReq

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

type BotJoinChatReqBody

type BotJoinChatReqBody struct {
	WorkItemTypeKey string `json:"work_item_type_key"`

	AppIDs []string `json:"app_ids"`
}

type BotJoinChatReqBuilder

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

func NewBotJoinChatReqBuilder

func NewBotJoinChatReqBuilder() *BotJoinChatReqBuilder

func (*BotJoinChatReqBuilder) AppIDs

func (builder *BotJoinChatReqBuilder) AppIDs(appIDs []string) *BotJoinChatReqBuilder

func (*BotJoinChatReqBuilder) Build

func (builder *BotJoinChatReqBuilder) Build() *BotJoinChatReq

func (*BotJoinChatReqBuilder) ProjectKey

func (builder *BotJoinChatReqBuilder) ProjectKey(projectKey string) *BotJoinChatReqBuilder

func (*BotJoinChatReqBuilder) WorkItemID

func (builder *BotJoinChatReqBuilder) WorkItemID(workItemID int64) *BotJoinChatReqBuilder

func (*BotJoinChatReqBuilder) WorkItemTypeKey

func (builder *BotJoinChatReqBuilder) WorkItemTypeKey(workItemTypeKey string) *BotJoinChatReqBuilder

type BotJoinChatResp

type BotJoinChatResp struct {
	*core.APIResp `json:"-"`
	core.CodeError
	Data *BotJoinChatInfo `json:"data"`
}

type ChatService

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

func NewService

func NewService(config *core.Config) *ChatService

func (*ChatService) BotJoinChat

func (a *ChatService) BotJoinChat(ctx context.Context, req *BotJoinChatReq, options ...core.RequestOptionFunc) (*BotJoinChatResp, error)

拉机器人入群

Jump to

Keyboard shortcuts

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