onebot

package
v0.0.0-...-a883674 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Message   PostType = "message"
	Notice    PostType = "notice"
	Request   PostType = "request"
	MetaEvent PostType = "meta_event"

	LifeCycle MetaEventType = "lifecycle"
	HeartBeat MetaEventType = "heartbeat"

	Private MsgEventType = "private"
	Group   MsgEventType = "group"

	SubFriend PrivateSubEventType = "friend"
	SubGroup  PrivateSubEventType = "group"
	SubOther  PrivateSubEventType = "other"

	SubNormal    GroupSubEventType = "normal"
	SubAnonymous GroupSubEventType = "anonymous"
	SubNotice    GroupSubEventType = "notice"
	SetAdmin     GroupSubEventType = "set"
	RemoveAdmin  GroupSubEventType = "unset"
	Leave        GroupSubEventType = "leave"   // 主动退群
	Kick         GroupSubEventType = "kick"    // 成员被踢
	KickMe       GroupSubEventType = "kick_me" // 登录号被踢
	Approve      GroupSubEventType = "approve" // 管理员已同意入群
	Invite       GroupSubEventType = "invite"  // 管理员邀请入群
	Ban          GroupSubEventType = "ban"
	LiftBan      GroupSubEventType = "lift_ban"
	Poke         GroupSubEventType = "poke"
	LuckyKing    GroupSubEventType = "lucky_king"
	Honor        GroupSubEventType = "honor"

	Male    SexType = "male"
	Female  SexType = "female"
	Unknown SexType = "unknown"

	GroupUpload   NoticeType = "group_upload"
	GroupAdmin    NoticeType = "group_admin"
	GroupDecrease NoticeType = "group_decrease"
	GroupIncrease NoticeType = "group_increase"
	GroupBan      NoticeType = "group_ban"
	FriendAdd     NoticeType = "friend_add"
	GroupRecall   NoticeType = "group_recall"
	FriendRecall  NoticeType = "friend_recall"
	Notify        NoticeType = "notify"

	Talkative HonorType = "talkative"
	Performer HonorType = "performer"
	Emotion   HonorType = "emotion"

	FriendAddRequest        ReqType = "friend"
	GroupAddOrInviteRequest ReqType = "group"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Action string  `json:"action,omitempty"`
	Params *Params `json:"params,omitempty"`
	Echo   string  `json:"echo,omitempty"`
}

type ActionType

type ActionType string
const (
	SendPrivateMsg       ActionType = "send_private_msg"
	SendGroupMsg         ActionType = "send_group_msg"
	SendMsg              ActionType = "send_msg"
	SendForwardMsg       ActionType = "send_forward_msg"
	DeleteMsg            ActionType = "delete_msg"
	GetMsg               ActionType = "get_msg"
	GetForwardMsg        ActionType = "get_forward_msg"
	SendLike             ActionType = "send_like"
	SetGroupKick         ActionType = "set_group_kick"
	SetGroupBan          ActionType = "set_group_ban"
	SetGroupAnonymousBan ActionType = "set_group_anonymous_ban"
	SetGroupWholeBan     ActionType = "set_group_whole_ban"
	SetGroupAdmin        ActionType = "set_group_admin"
	SetGroupAnonymous    ActionType = "set_group_anonymous"
	SetGroupCard         ActionType = "set_group_card"
	SetGroupName         ActionType = "set_group_name"
	SetGroupLeave        ActionType = "set_group_leave"
	SetGroupSpecialTitle ActionType = "set_group_special_title"
	SetFriendAddRequest  ActionType = "set_friend_add_request"
	SetGroupAddRequest   ActionType = "set_group_add_request"
	GetLoginInfo         ActionType = "get_login_info"
	GetStrangerInfo      ActionType = "get_stranger_info"
	GetFriendList        ActionType = "get_friend_list"
	GetGroupInfo         ActionType = "get_group_info"
	GetGroupList         ActionType = "get_group_list"
	GetGroupMemberInfo   ActionType = "get_group_member_info"
	GetGroupMemberList   ActionType = "get_group_member_list"
	GetGroupHonorInfo    ActionType = "get_group_honor_info"
	GetGookies           ActionType = "get_cookies"
	GetGsrfToken         ActionType = "get_csrf_token"
	GetGredentials       ActionType = "get_credentials"
	GetGecord            ActionType = "get_record"
	GetImage             ActionType = "get_image"
	CanSendImage         ActionType = "can_send_image"
	CanSendRecord        ActionType = "can_send_record"
	GetStatus            ActionType = "get_status"
	GetVersioInfo        ActionType = "get_version_info"
	SetRestart           ActionType = "set_restart"
	CleanCache           ActionType = "clean_cache"
)

type Anonymous

type Anonymous struct {
	Id   int64  `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
	Flag string `json:"flag,omitempty"`
}

type BotHeartBeat

type BotHeartBeat struct {
	Event
	MetaEventType string           `json:"meta_event_type"`
	Status        *HeartBeatStatus `json:"status,omitempty"`
}

type CanSendImageResp

type CanSendImageResp struct {
	Status  string                 `json:"status,omitempty"`
	RetCode int32                  `json:"retcode,omitempty"`
	Data    *ICanSendImageOrRecord `json:"data,omitempty"`
	Echo    string                 `json:"echo,omitempty"`
}

type CanSendRecordResp

type CanSendRecordResp struct {
	Status  string                 `json:"status,omitempty"`
	RetCode int32                  `json:"retcode,omitempty"`
	Data    *ICanSendImageOrRecord `json:"data,omitempty"`
	Echo    string                 `json:"echo,omitempty"`
}

type CleanCacheResp

type CleanCacheResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    any    `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type Cookies

type Cookies struct {
	Cookies string `json:"cookies,omitempty"`
}

type CookiesAndToken

type CookiesAndToken struct {
	Cookies string `json:"cookies,omitempty"`
	Token   int32  `json:"token,omitempty"`
}

type CurrentTalkative

type CurrentTalkative struct {
	UserId   int64  `json:"user_id,omitempty"`
	Nickname string `json:"nickname,omitempty"`
	Avatar   string `json:"avatar,omitempty"`
	DayCount int32  `json:"day_count,omitempty"`
}

type DeleteMsgResp

type DeleteMsgResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    any    `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type Event

type Event struct {
	Time     int64  `json:"time,omitempty"`
	SelfId   int64  `json:"self_id,omitempty"`
	PostType string `json:"post_type,omitempty"`
}

type File

type File struct {
	Id   int64  `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
	Size int64  `json:"size,omitempty"`
}

type Frame

type Frame struct {
	BotId         int64    `json:"bot_id,omitempty"`
	Echo          string   `json:"echo,omitempty"`
	Ok            bool     `json:"ok,omitempty"`
	Time          int64    `json:"time,omitempty"`
	SelfId        int64    `json:"self_id,omitempty"`
	PostType      PostType `json:"post_type,omitempty"`
	SubType       string   `json:"sub_type,omitempty"`
	MessageType   string   `json:"message_type,omitempty"`
	NoticeType    string   `json:"notice_type,omitempty"`
	RequestType   string   `json:"request_type,omitempty"`
	MetaEventType string   `json:"meta_event_type"`
	Status        any      `json:"status,omitempty"`
	Code          int32    `json:"retcode,omitempty"`
	Data          any      `json:"data,omitempty"`
	*API
}

type FriendAddNoticeEvent

type FriendAddNoticeEvent struct {
	Event
	NoticeType NoticeType `json:"notice_type,omitempty"`
	UserId     int64      `json:"user_id,omitempty"`
}

type FriendAddRequestEvent

type FriendAddRequestEvent struct {
	Event
	RequestType string `json:"request_type,omitempty"`
	UserId      int64  `json:"user_id,omitempty"`
	Comment     string `json:"comment,omitempty"`
	Flag        string `json:"flag,omitempty"`
}

type FriendMsgRecallNoticeEvent

type FriendMsgRecallNoticeEvent struct {
	Event
	NoticeType NoticeType `json:"notice_type,omitempty"`
	UserId     int64      `json:"user_id,omitempty"`
	MessageId  int64      `json:"message_id,omitempty"`
}

type GetCRSFTokenResp

type GetCRSFTokenResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    *Token `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type GetCookiesResp

type GetCookiesResp struct {
	Status  string   `json:"status,omitempty"`
	RetCode int32    `json:"retcode,omitempty"`
	Data    *Cookies `json:"data,omitempty"`
	Echo    string   `json:"echo,omitempty"`
}

type GetCredentialsResp

type GetCredentialsResp struct {
	Status  string           `json:"status,omitempty"`
	RetCode int32            `json:"retcode,omitempty"`
	Data    *CookiesAndToken `json:"data,omitempty"`
	Echo    string           `json:"echo,omitempty"`
}

type GetForwardMsgResp

type GetForwardMsgResp struct {
	Status  string      `json:"status,omitempty"`
	RetCode int32       `json:"retcode,omitempty"`
	Data    []*IMessage `json:"data,omitempty"`
	Echo    string      `json:"echo,omitempty"`
}

type GetFriendListResp

type GetFriendListResp struct {
	Status  string          `json:"status,omitempty"`
	RetCode int32           `json:"retcode,omitempty"`
	Data    *IGetFriendList `json:"data,omitempty"`
	Echo    string          `json:"echo,omitempty"`
}

type GetGroupHonorInfoResp

type GetGroupHonorInfoResp struct {
	Status  string              `json:"status,omitempty"`
	RetCode int32               `json:"retcode,omitempty"`
	Data    *IGetGroupHonorInfo `json:"data,omitempty"`
	Echo    string              `json:"echo,omitempty"`
}

type GetGroupInfoResp

type GetGroupInfoResp struct {
	Status  string     `json:"status,omitempty"`
	RetCode int32      `json:"retcode,omitempty"`
	Data    *GroupInfo `json:"data,omitempty"`
	Echo    string     `json:"echo,omitempty"`
}

type GetGroupListResp

type GetGroupListResp struct {
	Status  string       `json:"status,omitempty"`
	RetCode int32        `json:"retcode,omitempty"`
	Data    []*GroupInfo `json:"data,omitempty"`
	Echo    string       `json:"echo,omitempty"`
}

type GetGroupMemberInfoResp

type GetGroupMemberInfoResp struct {
	Status  string           `json:"status,omitempty"`
	RetCode int32            `json:"retcode,omitempty"`
	Data    *GroupMemberInfo `json:"data,omitempty"`
	Echo    string           `json:"echo,omitempty"`
}

type GetGroupMemberListResp

type GetGroupMemberListResp struct {
	Status  string             `json:"status,omitempty"`
	RetCode int32              `json:"retcode,omitempty"`
	Data    []*GroupMemberInfo `json:"data,omitempty"`
	Echo    string             `json:"echo,omitempty"`
}

type GetImageResp

type GetImageResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    *IFile `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type GetLoginInfoResp

type GetLoginInfoResp struct {
	Status  string         `json:"status,omitempty"`
	RetCode int32          `json:"retcode,omitempty"`
	Data    *IGetLoginInfo `json:"data,omitempty"`
	Echo    string         `json:"echo,omitempty"`
}

type GetMsgResp

type GetMsgResp struct {
	Status  string   `json:"status,omitempty"`
	RetCode int32    `json:"retcode,omitempty"`
	Data    *IGetMsg `json:"data,omitempty"`
	Echo    string   `json:"echo,omitempty"`
}

type GetRecordResp

type GetRecordResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    *IFile `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type GetStatusResp

type GetStatusResp struct {
	Status  string      `json:"status,omitempty"`
	RetCode int32       `json:"retcode,omitempty"`
	Data    *IGetStatus `json:"data,omitempty"`
	Echo    string      `json:"echo,omitempty"`
}

type GetStrangerInfoResp

type GetStrangerInfoResp struct {
	Status  string            `json:"status,omitempty"`
	RetCode int32             `json:"retcode,omitempty"`
	Data    *IGetStrangerInfo `json:"data,omitempty"`
	Echo    string            `json:"echo,omitempty"`
}

type GetVersioInfoResp

type GetVersioInfoResp struct {
	Status  string          `json:"status,omitempty"`
	RetCode int32           `json:"retcode,omitempty"`
	Data    *IGetVersioInfo `json:"data,omitempty"`
	Echo    string          `json:"echo,omitempty"`
}

type GroupAddOrInviteRequestEvent

type GroupAddOrInviteRequestEvent struct {
	Event
	RequestType string `json:"request_type,omitempty"`
	SubType     string `json:"sub_type,omitempty"`
	GroupId     int64  `json:"group_id,omitempty"`
	UserId      int64  `json:"user_id,omitempty"`
	Comment     string `json:"comment,omitempty"`
	Flag        string `json:"flag,omitempty"`
}

type GroupAdminChangeNoticeEvent

type GroupAdminChangeNoticeEvent struct {
	Event
	NoticeType NoticeType `json:"notice_type,omitempty"`
	SubType    string     `json:"sub_type,omitempty"`
	GroupId    int64      `json:"group_id,omitempty"`
	UserId     int64      `json:"user_id,omitempty"`
}

type GroupBanNoticeEvent

type GroupBanNoticeEvent struct {
	Event
	NoticeType NoticeType `json:"notice_type,omitempty"`
	SubType    string     `json:"sub_type,omitempty"`
	GroupId    int64      `json:"group_id,omitempty"`
	OperatorId int64      `json:"operator_id,omitempty"`
	UserId     int64      `json:"user_id,omitempty"`
	Duration   int64      `json:"duration,omitempty"`
}

type GroupInfo

type GroupInfo struct {
	GroupId        int64  `json:"group_id,omitempty"`
	GroupName      string `json:"group_name,omitempty"`
	MemberCount    int32  `json:"member_count,omitempty"`
	MaxMemberCount int32  `json:"max_member_count,omitempty"`
}

type GroupLuckyKingNoticeEvent

type GroupLuckyKingNoticeEvent struct {
	Event
	NoticeType NoticeType `json:"notice_type,omitempty"`
	SubType    string     `json:"sub_type,omitempty"`
	GroupId    int64      `json:"group_id,omitempty"`
	UserId     int64      `json:"user_id,omitempty"`
	TargetId   int64      `json:"target_id,omitempty"`
}

type GroupMemberDecreaseNoticeEvent

type GroupMemberDecreaseNoticeEvent struct {
	Event
	NoticeType NoticeType `json:"notice_type,omitempty"`
	SubType    string     `json:"sub_type,omitempty"`
	GroupId    int64      `json:"group_id,omitempty"`
	OperatorId int64      `json:"operator_id,omitempty"`
	UserId     int64      `json:"user_id,omitempty"`
}

type GroupMemberHonorChangeNoticeEvent

type GroupMemberHonorChangeNoticeEvent struct {
	Event
	NoticeType NoticeType `json:"notice_type,omitempty"`
	SubType    string     `json:"sub_type,omitempty"`
	GroupId    int64      `json:"group_id,omitempty"`
	HonorType  HonorType  `json:"honor_type,omitempty"`
	UserId     int64      `json:"user_id,omitempty"`
}

type GroupMemberIncreaseNoticeEvent

type GroupMemberIncreaseNoticeEvent struct {
	Event
	NoticeType NoticeType `json:"notice_type,omitempty"`
	SubType    string     `json:"sub_type,omitempty"`
	GroupId    int64      `json:"group_id,omitempty"`
	OperatorId int64      `json:"operator_id,omitempty"`
	UserId     int64      `json:"user_id,omitempty"`
}

type GroupMemberInfo

type GroupMemberInfo struct {
	GroupId         int64   `json:"group_id,omitempty"`
	UserId          int64   `json:"user_id,omitempty"`
	Nickname        string  `json:"nickname,omitempty"`
	Card            string  `json:"card,omitempty"`
	Sex             SexType `json:"sex,omitempty"`
	Age             int32   `json:"age,omitempty"`
	Area            string  `json:"area,omitempty"`
	JoinTime        int64   `json:"join_time,omitempty"`
	LastSentTime    int64   `json:"last_sent_time,omitempty"`
	Level           string  `json:"level,omitempty"`
	Role            string  `json:"role,omitempty"`
	UnFriendly      bool    `json:"unfriendly,omitempty"`
	Title           string  `json:"title,omitempty"`
	TitleExpireTime int64   `json:"title_expire_time,omitempty"`
	CardChangeable  bool    `json:"card_changeable,omitempty"`
}

type GroupMsgEvent

type GroupMsgEvent struct {
	Event
	MessageType string       `json:"message_type,omitempty"`
	SubType     string       `json:"sub_type,omitempty"`
	MessageId   int64        `json:"message_id,omitempty"`
	GroupId     int64        `json:"group_id,omitempty"`
	UserId      int64        `json:"user_id,omitempty"`
	Anonymous   *Anonymous   `json:"anonymous,omitempty"`
	Message     []*IMessage  `json:"message,omitempty"`
	RawMessage  string       `json:"raw_message,omitempty"`
	Font        int32        `json:"font,omitempty"`
	Sender      *GroupSender `json:"sender,omitempty"`
}

type GroupMsgRecallNoticeEvent

type GroupMsgRecallNoticeEvent struct {
	Event
	NoticeType NoticeType `json:"notice_type,omitempty"`
	GroupId    int64      `json:"group_id,omitempty"`
	OperatorId int64      `json:"operator_id,omitempty"`
	UserId     int64      `json:"user_id,omitempty"`
	MessageId  int64      `json:"message_id,omitempty"`
}

type GroupPokeNoticeEvent

type GroupPokeNoticeEvent struct {
	Event
	NoticeType NoticeType `json:"notice_type,omitempty"`
	SubType    string     `json:"sub_type,omitempty"`
	GroupId    int64      `json:"group_id,omitempty"`
	UserId     int64      `json:"user_id,omitempty"`
	TargetId   int64      `json:"target_id,omitempty"`
}

type GroupQuickOperate

type GroupQuickOperate struct {
	Reply       string `json:"reply,omitempty"`
	AutoEscape  bool   `json:"auto_escape,omitempty"`
	AtSender    bool   `json:"at_sender,omitempty"`
	Delete      bool   `json:"delete,omitempty"`
	Kick        bool   `json:"kick,omitempty"`
	Ban         bool   `json:"ban,omitempty"`
	BanDuration int64  `json:"ban_duration,omitempty"`
}

type GroupSender

type GroupSender struct {
	UserId   int64  `json:"user_id,omitempty"`
	Nickname string `json:"nickname,omitempty"`
	Card     string `json:"card,omitempty"`
	Sex      string `json:"sex,omitempty"`
	Age      int32  `json:"age,omitempty"`
	Area     string `json:"area,omitempty"`
	Level    string `json:"level,omitempty"`
	Role     string `json:"role,omitempty"`
	Title    string `json:"title,omitempty"`
}

type GroupSubEventType

type GroupSubEventType string

type GroupUploadNoticeEvent

type GroupUploadNoticeEvent struct {
	Event
	NoticeType NoticeType  `json:"notice_type,omitempty"`
	GroupId    int64       `json:"group_id,omitempty"`
	UserId     int64       `json:"user_id,omitempty"`
	File       *UploadFile `json:"file,omitempty"`
}

type HeartBeatStatus

type HeartBeatStatus struct {
	AppInitialized bool `json:"app_initialized,omitempty"`
	AppEnabled     bool `json:"app_enabled,omitempty"`
	AppGood        bool `json:"app_good,omitempty"`
	Online         bool `json:"online,omitempty"`
	Good           bool `json:"good,omitempty"`
}

type HonorType

type HonorType string

type ICanSendImageOrRecord

type ICanSendImageOrRecord struct {
	Yes bool `json:"yes,omitempty"`
}

type IFile

type IFile struct {
	File string `json:"file,omitempty"`
}

type IGetFriendList

type IGetFriendList struct {
	UserId   int64  `json:"user_id,omitempty"`
	Nickname string `json:"nickname,omitempty"`
	Remark   string `json:"remark,omitempty"`
}

type IGetGroupHonorInfo

type IGetGroupHonorInfo struct {
	GroupId          int64             `json:"group_id,omitempty"`
	CurrentTalkative *CurrentTalkative `json:"current_talkative,omitempty"`  // 当前龙王,仅 type 为 talkative 或 all 时有数据
	TalkativeList    *OtherList        `json:"talkative_list,omitempty"`     // 历史龙王,仅 type 为 talkative 或 all 时有数据
	PerformerList    *OtherList        `json:"performer_list,omitempty"`     // 群聊之火,仅 type 为 performer 或 all 时有数据
	LegendList       *OtherList        `json:"legend_list,omitempty"`        // 群聊炽焰,仅 type 为 legend 或 all 时有数据
	StrongNewbieList *OtherList        `json:"strong_newbie_list,omitempty"` // 冒尖小春笋,仅 type 为 strong_newbie 或 all 时有数据
	EmotionList      *OtherList        `json:"emotion_list,omitempty"`       // 快乐之源,仅 type 为 emotion 或 all 时有数据
}

type IGetLoginInfo

type IGetLoginInfo struct {
	UserId   int64  `json:"user_id,omitempty"`
	Nickname string `json:"nickname,omitempty"`
}

type IGetMsg

type IGetMsg struct {
	Time        int64        `json:"time,omitempty"`
	MessageType string       `json:"message_type,omitempty"`
	MessageId   int64        `json:"message_id,omitempty"`
	RealId      int64        `json:"real_id,omitempty"`
	Sender      *GroupSender `json:"sender,omitempty"`
	Message     []*IMessage  `json:"message,omitempty"`
}

type IGetStatus

type IGetStatus struct {
	Online bool `json:"online,omitempty"`
	Good   bool `json:"good,omitempty"`
}

type IGetStrangerInfo

type IGetStrangerInfo struct {
	UserId   int64   `json:"user_id,omitempty"`
	Nickname string  `json:"nickname,omitempty"`
	Sex      SexType `json:"sex,omitempty"`
	Age      int32   `json:"age,omitempty"`
}

type IGetVersioInfo

type IGetVersioInfo struct {
	AppName         string `json:"app_name,omitempty"`
	AppVersion      string `json:"app_version,omitempty"`
	ProtocolVersion string `json:"protocol_version,omitempty"` // OneBot 标准版本,如 v11
}

type IMessage

type IMessage struct {
	Type string         `json:"type,omitempty"`
	Data map[string]any `json:"data,omitempty"`
}

type LifeTime

type LifeTime struct {
	Event
	MetaEventType string `json:"meta_event_type"`
	SubType       string `json:"sub_type"`
}

type MetaEventType

type MetaEventType string

type MsgEventType

type MsgEventType string

type NoticeType

type NoticeType string

type OtherList

type OtherList struct {
	UserId      int64  `json:"user_id,omitempty"`
	Nickname    string `json:"nickname,omitempty"`
	Avatar      string `json:"avatar,omitempty"`
	Description string `json:"description,omitempty"`
}

type Params

type Params struct {
	UserId           int64       `json:"user_id,omitempty"`
	GroupId          int64       `json:"group_id,omitempty"`
	Message          []*IMessage `json:"message,omitempty"`
	Messages         []*IMessage `json:"messages,omitempty"`
	MessageType      string      `json:"message_type,omitempty"`
	AutoEscape       bool        `json:"auto_escape,omitempty"`
	MessageId        int64       `json:"message_id,omitempty"`
	Id               string      `json:"id,omitempty"`
	RejectAddRequest bool        `json:"reject_add_request,omitempty"`
	Duration         int64       `json:"duration,omitempty"`
	Enable           bool        `json:"enable,omitempty"`
	Card             string      `json:"card,omitempty"`
	GroupName        string      `json:"group_name,omitempty"`
	Flag             string      `json:"flag,omitempty"`
	Approve          bool        `json:"approve,omitempty"`
	Remark           string      `json:"remark,omitempty"`
	IsDismiss        bool        `json:"is_dismiss,omitempty"`
	SpecialTitle     string      `json:"special_title,omitempty"`
	SubType          string      `json:"sub_type,omitempty"`
	Type             string      `json:"type,omitempty"`
	Reason           string      `json:"reason,omitempty"`
	Nickname         string      `json:"nickname,omitempty"`
	NoCache          bool        `json:"no_cache,omitempty"`
	Domain           string      `json:"domain,omitempty"`
	File             string      `json:"file,omitempty"`
	Delay            int32       `json:"delay,omitempty"`
	OutFormat        string      `json:"out_format,omitempty"`
	Times            int32       `json:"times,omitempty"`
	Anonymous        *Anonymous  `json:"anonymous,omitempty"`
	AnonymousFlag    string      `json:"anonymous_flag,omitempty"`
	Name             string      `json:"name,omitempty"`
	Uin              string      `json:"uin,omitempty"`
	Content          string      `json:"content,omitempty"`
}

type PostType

type PostType string

type PrivateMsgEvent

type PrivateMsgEvent struct {
	Event
	MessageType string         `json:"message_type,omitempty"`
	SubType     string         `json:"sub_type,omitempty"`
	MessageId   int64          `json:"message_id,omitempty"`
	UserId      int64          `json:"user_id,omitempty"`
	Message     []*IMessage    `json:"message,omitempty"`
	RawMessage  string         `json:"raw_message,omitempty"`
	Font        int32          `json:"font,omitempty"`
	Sender      *PrivateSender `json:"sender,omitempty"`
}

type PrivateQuickOperate

type PrivateQuickOperate struct {
	Reply      string `json:"reply,omitempty"`
	AutoEscape bool   `json:"auto_escape,omitempty"`
}

type PrivateSender

type PrivateSender struct {
	UserId   int64   `json:"user_id,omitempty"`
	Nickname string  `json:"nickname,omitempty"`
	Sex      SexType `json:"sex,omitempty"`
	Age      int32   `json:"age,omitempty"`
}

type PrivateSubEventType

type PrivateSubEventType string

type ReqType

type ReqType string

type SendForwardMsgResp

type SendForwardMsgResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    string `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type SendLikeResp

type SendLikeResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    any    `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type SendMsgResponse

type SendMsgResponse struct {
	Status  string               `json:"status,omitempty"`
	RetCode int32                `json:"retcode,omitempty"`
	Data    *SendMsgResponseData `json:"data,omitempty"`
	Echo    string               `json:"echo,omitempty"`
}

type SendMsgResponseData

type SendMsgResponseData struct {
	MessageId int64 `json:"message_id,omitempty"`
}

type SetFriendAddRequestResp

type SetFriendAddRequestResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    any    `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type SetGroupAddRequestResp

type SetGroupAddRequestResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    any    `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type SetGroupAdminResp

type SetGroupAdminResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    any    `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type SetGroupAnonymousBanResp

type SetGroupAnonymousBanResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    any    `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type SetGroupAnonymousResp

type SetGroupAnonymousResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    any    `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type SetGroupBanResp

type SetGroupBanResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    any    `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type SetGroupCardResp

type SetGroupCardResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    any    `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type SetGroupKickResp

type SetGroupKickResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    any    `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type SetGroupLeaveResp

type SetGroupLeaveResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    any    `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type SetGroupNameResp

type SetGroupNameResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    any    `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type SetGroupSpecialTitleResp

type SetGroupSpecialTitleResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    any    `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type SetGroupWholeBanResp

type SetGroupWholeBanResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    any    `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type SetRestartResp

type SetRestartResp struct {
	Status  string `json:"status,omitempty"`
	RetCode int32  `json:"retcode,omitempty"`
	Data    any    `json:"data,omitempty"`
	Echo    string `json:"echo,omitempty"`
}

type SexType

type SexType string

type Token

type Token struct {
	Token int32 `json:"token,omitempty"`
}

type UploadFile

type UploadFile struct {
	Id    int64  `json:"id,omitempty"`
	Name  string `json:"name,omitempty"`
	Size  int64  `json:"size,omitempty"`
	BusId int64  `json:"busid,omitempty"`
}

Jump to

Keyboard shortcuts

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