tencent

package
v0.0.0-...-742f5fa Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	AppID     int
	SecretKey string
	Admin     string
	Expire    int
	// contains filtered or unexported fields
}

Client 腾讯云 IM 客户端

func NewClient

func NewClient(appID int, secretKey, admin string, expire int) (*Client, error)

NewClient 创建客户端

func (*Client) AccountImport

func (c *Client) AccountImport(userID, nick, faceURL string) error

AccountImport 导入账号

func (*Client) GetUserSig

func (c *Client) GetUserSig(userID string) (string, error)

GetUserSig 获取用户 UserSig(用于客户端登录)

func (*Client) QueryState

func (c *Client) QueryState(userIDs []string) (map[string]string, error)

QueryState 查询用户在线状态

func (*Client) SendMessage

func (c *Client) SendMessage(fromUser, toUser, content string) (int64, string, error)

SendMessage 发送单聊消息

Jump to

Keyboard shortcuts

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