fastlib

package
v0.1.8-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CqDeleteMsg

func CqDeleteMsg(MessageID int32) bool

CqDeleteMsg delete message from message ID.

func CqDismissGroup

func CqDismissGroup(GroupID int64) bool

func CqFriendReq

func CqFriendReq(Flag string, Approve bool, Remark string) bool

CqFriendReq process friend request. Flag: Request flag, get from request event. Approve: true for approve, false for reject. Remark: Remark for friend.

func CqGenCustomForward

func CqGenCustomForward(Name string, Id string, Content string) models2.ForwardCustomNode

CqGenCustomForward generate forward node from custom data. Name: Name of the sender. ID: QQ ID of the sender. Content: Content of the message.

func CqGenIdForward

func CqGenIdForward(MessageID string) models2.ForwardIdNode

CqGenIdForward generate forward node from message ID.

func CqGetForwardMsg

func CqGetForwardMsg(MessageID string) models2.GetForwardMsgResp

CqGetForwardMsg get forward message from message ID.

func CqGetFriends

func CqGetFriends() models2.GetFriendListResp

CqGetFriends get friend list.

func CqGetGroupInfo

func CqGetGroupInfo(GroupID int64) models2.GetGroupInfoResp

CqGetGroupInfo get group info.

func CqGetGroupMemberInfo

func CqGetGroupMemberInfo(GroupID int64, UserID int64) models2.GetGroupMemberInfoResp

CqGetGroupMemberInfo get group member info.

func CqGetGroupMembers

func CqGetGroupMembers(GroupID int64) models2.GetGroupMemberListResp

CqGetGroupMembers get group member list.

func CqGetGroups

func CqGetGroups() models2.GetGroupListResp

CqGetGroups get group list.

func CqGetImage

func CqGetImage(FileName string) models2.GetImageResp

CqGetImage get image from cached file name.

func CqGetMsg

func CqGetMsg(MessageID int32) models2.GetMsgResp

CqGetMsg get message from message ID.

func CqGetRecord

func CqGetRecord(FileName string) models2.GetRecordResp

CqGetRecord get record cached from file name.

func CqGetStrangerInfo

func CqGetStrangerInfo(UserID int64) models2.GetStrangerInfoResp

CqGetStrangerInfo get stranger info.

func CqGroupBan

func CqGroupBan(GroupID int64, UserID int64, Duration uint32, DeBan bool) bool

CqGroupBan ban group member. BanAll true: ban all member. DeBan true: unban. Duration only work when BanAll is false.

func CqGroupEssenceMsg

func CqGroupEssenceMsg(MessageID int32, Remove bool) bool

CqGroupEssenceMsg set group essence message.

func CqGroupKick

func CqGroupKick(GroupID int64, UserID int64, RejectAddRequest bool) bool

CqGroupKick kick group member.

func CqGroupMute

func CqGroupMute(GroupID int64, UnMute bool) bool

CqGroupMute mute group.

func CqGroupReq

func CqGroupReq(Flag string, Type string, Approve bool, RejectReason string) bool

CqGroupReq process group request. Flag: Request flag, get from request event. Type: Request type, get from request event. Approve: true for approve, false for reject. RejectReason: Reject reason.

func CqGroupSendNotice

func CqGroupSendNotice(GroupID int64, Content string, Image string) bool

func CqLeaveGroup

func CqLeaveGroup(GroupID int64) bool

func CqSendForwardMsg

func CqSendForwardMsg(Messages interface{}, Id int64, IsGroup bool) int64

CqSendForwardMsg send forward message to group or user. Message: Message to send. ID: Group ID or User ID. IsGroup: true for group, false for user.

func CqSendMsg

func CqSendMsg(Message string, Id int64, IsGroup bool) int32

CqSendMsg send message to group or user. Message: Message to send. ID: Group ID or User ID. IsGroup: true for group, false for user.

func CqSetGroupAdmin

func CqSetGroupAdmin(GroupID int64, UserID int64, Enable bool) bool

CqSetGroupAdmin set group admin.

func CqSetGroupInfo

func CqSetGroupInfo(GroupID int64, GroupName string, Avatar string, UserId int64, Card string, SpecialTitle string, Type int) bool

CqSetGroupInfo set group info. Type 1: GroupID, GroupName set group name. Type 2: GroupID, Avatar(path) set group avatar. Type 3: GroupID, UserId, Card set group card. Type 4: GroupID, UserId, SpecialTitle set group member special title.

Types

This section is empty.

Jump to

Keyboard shortcuts

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