botclient

package
v0.0.0-...-d296f3d Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotClient

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

func NewBotClient

func NewBotClient(isSandBox bool, token *token.Token) *BotClient

func (*BotClient) GetWSAccessPoint

func (c *BotClient) GetWSAccessPoint(ctx context.Context) (*dto.WSAccessPoint, error)

func (*BotClient) Me

func (c *BotClient) Me(ctx context.Context) (*dto.User, error)

Me 拉取当前用户的信息

func (*BotClient) MessageSend

func (c *BotClient) MessageSend(ctx context.Context, channelID string, msg *dto.PostChannelMessage) (*dto.Message, error)

MessageSend 发送消息

Jump to

Keyboard shortcuts

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