api

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanSendImage

func CanSendImage()

func CanSendRecord

func CanSendRecord()

func CleanCache

func CleanCache()

func DeleteMsg

func DeleteMsg(mid int64)

func GenAgent

func GenAgent(url string, accessToken string)

func GetCookies

func GetCookies(domain string)

func GetCredentials

func GetCredentials(domain string)

func GetCsrfToken

func GetCsrfToken()

func GetForwardMsg

func GetForwardMsg(mid int64)

func GetFriendList

func GetFriendList()

func GetGroupHonorInfo

func GetGroupHonorInfo(gid int64, _type string)

func GetGroupInfo

func GetGroupInfo(gid int64, noCache bool)

func GetGroupList

func GetGroupList()

func GetGroupMemberInfo

func GetGroupMemberInfo(gid int64, uid int64, noCache bool)

func GetGroupMemberList

func GetGroupMemberList(gid int64)

func GetImage

func GetImage(file string)

func GetLoginInfo

func GetLoginInfo()

func GetMessage

func GetMessage(mid int64)

func GetRecord

func GetRecord(file string, outFormat string)

func GetStatus

func GetStatus()

func GetStrangerInfo

func GetStrangerInfo(uid int64, noCache bool)

func GetVersionInfo

func GetVersionInfo()

func PostGroupMessage

func PostGroupMessage(receiver int64, msg string)

func PostPrivateMessage

func PostPrivateMessage(receiver int64, msg string)

func SendLike

func SendLike(uid int64, times int64)

func SetFriendAddRequest

func SetFriendAddRequest(flag string, approve bool, remark string)

func SetGroupAddRequest

func SetGroupAddRequest(flag string, _type string, approve bool, reason string)

func SetGroupAdmin

func SetGroupAdmin(gid, uid int64, enable bool)

func SetGroupAnonymous

func SetGroupAnonymous(gid int64, enable bool)

func SetGroupAnonymousBan

func SetGroupAnonymousBan(gid, duration int64, anonymous entity.AnonymousUser, flag string)

func SetGroupBan

func SetGroupBan(gid, uid, time int64)

func SetGroupCard

func SetGroupCard(gid, uid int64, card string)

func SetGroupKick

func SetGroupKick(gid, uid int64, reject bool)

func SetGroupLeave

func SetGroupLeave(gid int64, dismiss bool)

func SetGroupName

func SetGroupName(gid int64, name string)

func SetGroupSpecialTitle

func SetGroupSpecialTitle(gid, uid int64, title string, duration int64)

func SetGroupWholeBan

func SetGroupWholeBan(gid int64, enable bool)

func SetRestart

func SetRestart()

Types

type Agent

type Agent struct {
	URL         string
	AccessToken string
}

func (*Agent) NewPostMessage

func (a *Agent) NewPostMessage(action string, params map[string]interface{}) *MessageTemplate

func (*Agent) PostMessage

func (a *Agent) PostMessage(action string, param map[string]interface{}, autoEscape ...bool) []byte

type MessageTemplate

type MessageTemplate struct {
	Action string                 `json:"action"`
	Params map[string]interface{} `json:"params"`
	Echo   string                 `json:"echo"`
}

Jump to

Keyboard shortcuts

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