Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeFace(encodeFace string) (string, error)
- func DecodeFaceFromSentences(encode string, format string) string
- func MacroAt(qqs []int64) string
- func MacroAtAll() string
- func MacroId() string
- func SetLog(l *logrus.Entry)
- func VoiceMp3ToSilk(mp3Path string) (string, error)
- func VoiceSilkToMp3(base64EncodedSilk string) ([]byte, error)
- type AtMsg
- type BotManager
- func (b *BotManager) AddEvent(EventName string, f ...interface{}) (func(), error)
- func (b *BotManager) Announce(title, text string, pinned, announceType int, groupID int64) error
- func (b *BotManager) CallFunc(FuncName string, funcStruct string) ([]byte, error)
- func (b *BotManager) Chuo(sendType int, groupID, userId int64) error
- func (b *BotManager) GetFile(fileId string, groupID int64) (FriendFileResult, GroupFileResult, error)
- func (b *BotManager) GetFriendList(startIndex int) (FriendList, error)
- func (b *BotManager) GetGroupList(nextToken string) (GroupList, error)
- func (b *BotManager) GetGroupMemberList(groupID, LastUin int64) (GroupMemberList, error)
- func (b *BotManager) GetUserCardInfo(qq int64) (UserCardInfo, error)
- func (b *BotManager) GetUserCookie() (Cookie, error)
- func (b *BotManager) GetUserInfo(qq int64) (UserInfo, error)
- func (b *BotManager) KickGroupMember(groupID, userId int64) error
- func (b *BotManager) OldSendVoice(userID int64, sendToType int, data string) error
- func (b *BotManager) ReCallMsg(GroupID, MsgRandom int64, MsgSeq int) error
- func (b *BotManager) RefreshKey() error
- func (b *BotManager) RegSendMiddleware(priority int, f func(m map[string]interface{}) map[string]interface{}) error
- func (b *BotManager) Send(sendMsgPack SendMsgPack)
- func (b *BotManager) SendFriendPicMsg(FriendUin int64, Content string, Pic []byte)
- func (b *BotManager) SendFriendTextMsg(FriendUin int64, Content string)
- func (b *BotManager) SendGroupJsonMsg(GroupUin int64, Content string)
- func (b *BotManager) SendGroupPicMsg(GroupUin int64, Content string, Pic []byte)
- func (b *BotManager) SendGroupTextMsg(GroupUin int64, Content string)
- func (b *BotManager) SendGroupXmlMsg(GroupUin int64, Content string)
- func (b *BotManager) SetAdmin(flag int, groupID, userId int64) error
- func (b *BotManager) SetForbidden(flag, ShutTime int, groupID, userId int64) error
- func (b *BotManager) SetGroupNewNick(newNick string, groupID, userId int64) error
- func (b *BotManager) SetGroupUniqueTitle(newNick string, groupID, userId int64) error
- func (b *BotManager) SetMaxRetryCount(maxRetryCount int)
- func (b *BotManager) SetSendDelayed(Millisecond int)
- func (b *BotManager) Start() error
- func (b *BotManager) Stop()
- func (b *BotManager) UploadFileWithBase64(FileName, FileBase64 string, ToUserUid int64, Notify bool) error
- func (b *BotManager) UploadFileWithFilePath(FilePath string, ToUserUid int64, Notify bool) error
- func (b *BotManager) UploadFileWithFileUrl(FileName, FileUrl string, ToUserUid int64, Notify bool) error
- func (b *BotManager) Wait()
- func (b *BotManager) Zan(qq int64, num int) int
- type Context
- type Cookie
- type FriendFileResult
- type FriendList
- type FriendMsgPack
- type GroupAdminPack
- type GroupAdminSysNotifyPack
- type GroupExitPack
- type GroupExitSuccessPack
- type GroupFileMsg
- type GroupFileResult
- type GroupJoinPack
- type GroupList
- type GroupMemberList
- type GroupMsgPack
- type GroupRevokePack
- type GroupShutPack
- type GroupSystemNotifyPack
- type MyRecord
- type PicMsg
- type Reply
- type Result
- type SendMsgPack
- type SendTypeForwordContent
- type SendTypeForwordContentPrivateChat
- type SendTypeJsonContent
- type SendTypeJsonContentPrivateChat
- type SendTypePicMsgByBase64Content
- type SendTypePicMsgByBase64ContentPrivateChat
- type SendTypePicMsgByLocalContent
- type SendTypePicMsgByLocalContentPrivateChat
- type SendTypePicMsgByMd5Content
- type SendTypePicMsgByMd5ContentPrivateChat
- type SendTypePicMsgByUrlContent
- type SendTypePicMsgByUrlContentPrivateChat
- type SendTypeReplyContent
- type SendTypeReplyContentPrivateChat
- type SendTypeTextMsgContent
- type SendTypeTextMsgContentPrivateChat
- type SendTypeVoiceByLocalContent
- type SendTypeVoiceByLocalContentPrivateChat
- type SendTypeVoiceByUrlContent
- type SendTypeVoiceByUrlContentPrivateChat
- type SendTypeXmlContent
- type SendTypeXmlContentPrivateChat
- type UserCardInfo
- type UserInfo
- type VideoMsg
Constants ¶
const ( Face_惊讶 = "[表情0]" Face_撇嘴 = "[表情1]" Face_色 = "[表情2]" Face_发呆 = "[表情3]" Face_得意 = "[表情4]" Face_流泪 = "[表情5]" Face_害羞 = "[表情6]" Face_闭嘴 = "[表情7]" Face_睡 = "[表情8]" Face_大哭 = "[表情9]" Face_尴尬 = "[表情10]" Face_发怒 = "[表情11]" Face_调皮 = "[表情12]" Face_呲牙 = "[表情13]" Face_微笑 = "[表情14]" Face_难过 = "[表情15]" Face_酷 = "[表情16]" Face_抓狂 = "[表情18]" Face_吐 = "[表情19]" Face_偷笑 = "[表情20]" Face_可爱 = "[表情21]" Face_白眼 = "[表情22]" Face_傲慢 = "[表情23]" Face_饥饿 = "[表情24]" Face_困 = "[表情25]" Face_惊恐 = "[表情26]" Face_流汗 = "[表情27]" Face_憨笑 = "[表情28]" Face_悠闲 = "[表情29]" Face_奋斗 = "[表情30]" Face_咒骂 = "[表情31]" Face_疑问 = "[表情32]" Face_嘘 = "[表情33]" Face_晕 = "[表情34]" Face_折磨 = "[表情35]" Face_衰 = "[表情36]" Face_骷髅 = "[表情37]" Face_敲打 = "[表情38]" Face_再见 = "[表情39]" Face_发抖 = "[表情41]" Face_爱情 = "[表情42]" Face_跳跳 = "[表情43]" Face_猪头 = "[表情46]" Face_拥抱 = "[表情49]" Face_蛋糕 = "[表情53]" Face_闪电 = "[表情54]" Face_炸弹 = "[表情55]" Face_刀 = "[表情56]" Face_足球 = "[表情57]" Face_便便 = "[表情59]" Face_咖啡 = "[表情60]" Face_饭 = "[表情61]" Face_玫瑰 = "[表情63]" Face_凋谢 = "[表情64]" Face_爱心 = "[表情66]" Face_心碎 = "[表情67]" Face_礼物 = "[表情69]" Face_太阳 = "[表情74]" Face_月亮 = "[表情75]" Face_赞 = "[表情76]" Face_踩 = "[表情77]" Face_握手 = "[表情78]" Face_胜利 = "[表情79]" Face_飞吻 = "[表情82]" Face_怄火 = "[表情86]" Face_西瓜 = "[表情89]" Face_冷汗 = "[表情96]" Face_擦汗 = "[表情97]" Face_抠鼻 = "[表情98]" Face_鼓掌 = "[表情99]" Face_糗大了 = "[表情100]" Face_坏笑 = "[表情101]" Face_左哼哼 = "[表情102]" Face_右哼哼 = "[表情103]" Face_哈欠 = "[表情104]" Face_鄙视 = "[表情105]" Face_委屈 = "[表情106]" Face_快哭了 = "[表情107]" Face_阴险 = "[表情108]" Face_左亲亲 = "[表情109]" Face_吓 = "[表情110]" Face_可怜 = "[表情111]" Face_菜刀 = "[表情112]" Face_啤酒 = "[表情113]" Face_篮球 = "[表情114]" Face_乒乓 = "[表情115]" Face_示爱 = "[表情116]" Face_瓢虫 = "[表情117]" Face_抱拳 = "[表情118]" Face_勾引 = "[表情119]" Face_拳头 = "[表情120]" Face_差劲 = "[表情121]" Face_爱你 = "[表情122]" Face_NO = "[表情123]" Face_OK = "[表情124]" Face_转圈 = "[表情125]" Face_磕头 = "[表情126]" Face_回头 = "[表情127]" Face_跳绳 = "[表情128]" Face_挥手 = "[表情129]" Face_激动 = "[表情130]" Face_街舞 = "[表情131]" Face_献吻 = "[表情132]" Face_左太极 = "[表情133]" Face_右太极 = "[表情134]" Face_双喜 = "[表情136]" Face_嗨皮牛耶 = "[表情137]" Face_灯笼 = "[表情138]" Face_K歌 = "[表情140]" Face_喝彩 = "[表情144]" Face_祈祷 = "[表情145]" Face_爆筋 = "[表情146]" Face_棒棒糖 = "[表情147]" Face_喝奶 = "[表情148]" Face_飞机 = "[表情151]" Face_钞票 = "[表情158]" Face_药 = "[表情168]" Face_手枪 = "[表情169]" Face_茶 = "[表情171]" Face_眨眼睛 = "[表情172]" Face_泪奔 = "[表情173]" Face_无奈 = "[表情174]" Face_卖萌 = "[表情175]" Face_小纠结 = "[表情176]" Face_喷血 = "[表情177]" Face_斜眼笑 = "[表情178]" Face_doge = "[表情179]" Face_惊喜 = "[表情180]" Face_骚扰 = "[表情181]" Face_笑哭 = "[表情182]" Face_我最美 = "[表情183]" Face_河蟹 = "[表情184]" Face_羊驼 = "[表情185]" Face_幽灵 = "[表情187]" Face_蛋 = "[表情188]" Face_菊花 = "[表情190]" Face_红包 = "[表情192]" Face_大笑 = "[表情193]" Face_不开心 = "[表情194]" Face_冷漠 = "[表情197]" Face_呃 = "[表情198]" Face_好棒 = "[表情199]" Face_拜托 = "[表情200]" Face_点赞 = "[表情201]" Face_无聊 = "[表情202]" Face_托脸 = "[表情203]" Face_吃 = "[表情204]" Face_送花 = "[表情205]" Face_害怕 = "[表情206]" Face_花痴 = "[表情207]" Face_小样儿 = "[表情208]" Face_飙泪 = "[表情210]" Face_我不看 = "[表情211]" Face_托腮 = "[表情212]" Face_啵啵 = "[表情214]" Face_糊脸 = "[表情215]" Face_拍头 = "[表情216]" Face_扯一扯 = "[表情217]" Face_舔一舔 = "[表情218]" Face_蹭一蹭 = "[表情219]" Face_佛系 = "[表情220]" Face_顶呱呱 = "[表情221]" Face_加油必胜 = "[表情245]" Face_加油抱抱 = "[表情246]" Face_口罩护体 = "[表情247]" )
const ( SendToTypeFriend = 1 SendToTypeGroup = 2 SendToTypePrivateChat = 3 EventNameOnGroupMessage = "OnGroupMsgs" EventNameOnFriendMessage = "OnFriendMsgs" EventNameOnBotEvent = "OnFriendMsgs" EventNameOnGroupJoin = "ON_EVENT_GROUP_JOIN" EventNameOnGroupAdmin = "ON_EVENT_GROUP_ADMIN" EventNameOnGroupExit = "ON_EVENT_GROUP_EXIT" EventNameOnGroupExitSuccess = "ON_EVENT_GROUP_EXIT_SUCC" EventNameOnGroupAdminSysNotify = "ON_EVENT_GROUP_ADMINSYSNOTIFY" EventNameOnGroupRevoke = "ON_EVENT_GROUP_REVOKE" EventNameOnGroupShut = "ON_EVENT_GROUP_SHUT" EventNameOnGroupSystemNotify = "ON_EVENT_GROUP_SYSTEMNOTIFY" EventNameOnConnected = "connection" EventNameOnDisconnected = "disconnection" EventNameOnOther = "other" )
Variables ¶
var FaceMap = map[string]string{}/* 165 elements not displayed */
Functions ¶
func DecodeFace ¶ added in v0.2.0
func DecodeFaceFromSentences ¶ added in v0.2.0
func MacroAtAll ¶ added in v0.0.7
func MacroAtAll() string
func VoiceMp3ToSilk ¶ added in v0.1.0
VoiceMp3ToSilk Mp3转Silk mp3->silk Output: base64 String
func VoiceSilkToMp3 ¶ added in v0.1.0
VoiceSilkToMp3 Silk转Mp3 silk->mp3 Output: []byte
Types ¶
type AtMsg ¶ added in v0.2.1
type AtMsg struct { Content string `json:"Content"` UserExt []struct { QQNick string `json:"QQNick"` QQUID int64 `json:"QQUid"` } `json:"UserExt"` UserID []int64 `json:"UserID"` }
func ParserGroupAtMsg ¶ added in v0.2.1
func ParserGroupAtMsg(pack GroupMsgPack) (a AtMsg, e error)
type BotManager ¶
type BotManager struct { QQ int64 SendChan chan SendMsgPack Running bool OPQUrl string MaxRetryCount int Done chan int Session *session.Manager // contains filtered or unexported fields }
func NewBotManager ¶
func NewBotManager(QQ int64, OPQUrl string) *BotManager
func (*BotManager) AddEvent ¶
func (b *BotManager) AddEvent(EventName string, f ...interface{}) (func(), error)
func (*BotManager) Announce ¶ added in v0.0.7
func (b *BotManager) Announce(title, text string, pinned, announceType int, groupID int64) error
Announce 发公告 Pinned 1为置顶,0为普通公告 announceType 发布类型(10为使用弹窗公告,20为发送给新成员,其他暂未知)
func (*BotManager) CallFunc ¶ added in v0.1.7
func (b *BotManager) CallFunc(FuncName string, funcStruct string) ([]byte, error)
func (*BotManager) Chuo ¶ added in v0.1.0
func (b *BotManager) Chuo(sendType int, groupID, userId int64) error
Chuo 戳戳 sendType 0戳好友 1戳群友 sendType=0 时可以不填此字段 sendType=1 时不能为空
func (*BotManager) GetFile ¶ added in v0.0.7
func (b *BotManager) GetFile(fileId string, groupID int64) (FriendFileResult, GroupFileResult, error)
GetFile 下载文件 groupId 为0 是下载好友分享文件
func (*BotManager) GetFriendList ¶ added in v0.1.0
func (b *BotManager) GetFriendList(startIndex int) (FriendList, error)
GetFriendList 获取好友列表
func (*BotManager) GetGroupList ¶ added in v0.1.0
func (b *BotManager) GetGroupList(nextToken string) (GroupList, error)
GetGroupList 获取群列表
func (*BotManager) GetGroupMemberList ¶ added in v0.1.4
func (b *BotManager) GetGroupMemberList(groupID, LastUin int64) (GroupMemberList, error)
GetGroupMemberList 获取群成员列表
func (*BotManager) GetUserCardInfo ¶ added in v0.1.0
func (b *BotManager) GetUserCardInfo(qq int64) (UserCardInfo, error)
GetUserCardInfo 获取用户信息
func (*BotManager) GetUserCookie ¶ added in v0.1.3
func (b *BotManager) GetUserCookie() (Cookie, error)
GetUserCookie 获取QQ相关ck
func (*BotManager) GetUserInfo ¶ added in v0.0.7
func (b *BotManager) GetUserInfo(qq int64) (UserInfo, error)
GetUserInfo 获取用户信息
func (*BotManager) KickGroupMember ¶ added in v0.1.0
func (b *BotManager) KickGroupMember(groupID, userId int64) error
KickGroupMember 踢出群成员
func (*BotManager) OldSendVoice ¶ added in v0.1.0
func (b *BotManager) OldSendVoice(userID int64, sendToType int, data string) error
OldSendVoice 发送语音 旧版 将被移出
func (*BotManager) ReCallMsg ¶
func (b *BotManager) ReCallMsg(GroupID, MsgRandom int64, MsgSeq int) error
ReCallMsg 撤回消息
func (*BotManager) RefreshKey ¶ added in v0.0.7
func (b *BotManager) RefreshKey() error
RefreshKey 刷新Key
func (*BotManager) RegSendMiddleware ¶ added in v0.1.0
func (b *BotManager) RegSendMiddleware(priority int, f func(m map[string]interface{}) map[string]interface{}) error
RegSendMiddleware 注册 发送函数的中间件 2为最先执行 0为最后执行
func (*BotManager) SendFriendPicMsg ¶ added in v0.1.4
func (b *BotManager) SendFriendPicMsg(FriendUin int64, Content string, Pic []byte)
SendFriendPicMsg 发送图片信息给好友
func (*BotManager) SendFriendTextMsg ¶ added in v0.1.4
func (b *BotManager) SendFriendTextMsg(FriendUin int64, Content string)
SendFriendTextMsg 发送文字信息给好友
func (*BotManager) SendGroupJsonMsg ¶ added in v0.1.4
func (b *BotManager) SendGroupJsonMsg(GroupUin int64, Content string)
SendGroupJsonMsg 发送JSON信息给群
func (*BotManager) SendGroupPicMsg ¶ added in v0.1.4
func (b *BotManager) SendGroupPicMsg(GroupUin int64, Content string, Pic []byte)
SendGroupPicMsg 发送图片信息给群
func (*BotManager) SendGroupTextMsg ¶ added in v0.1.4
func (b *BotManager) SendGroupTextMsg(GroupUin int64, Content string)
SendGroupTextMsg 发送文字信息给群
func (*BotManager) SendGroupXmlMsg ¶ added in v0.1.4
func (b *BotManager) SendGroupXmlMsg(GroupUin int64, Content string)
SendGroupXmlMsg 发送Xml信息给群
func (*BotManager) SetAdmin ¶ added in v0.0.7
func (b *BotManager) SetAdmin(flag int, groupID, userId int64) error
SetAdmin 设置管理员 flag 1为设置管理员 2为取消管理员
func (*BotManager) SetForbidden ¶ added in v0.0.7
func (b *BotManager) SetForbidden(flag, ShutTime int, groupID, userId int64) error
SetForbidden 设置禁言 flag 0为设置全体禁言 1为设置某人禁言 ShutTime 0为取消禁言 >0为禁言分钟数 全体禁言>0为开启禁言
func (*BotManager) SetGroupNewNick ¶ added in v0.1.0
func (b *BotManager) SetGroupNewNick(newNick string, groupID, userId int64) error
SetGroupNewNick 设置群名片
func (*BotManager) SetGroupUniqueTitle ¶ added in v0.1.0
func (b *BotManager) SetGroupUniqueTitle(newNick string, groupID, userId int64) error
SetGroupUniqueTitle 设置群头衔
func (*BotManager) SetMaxRetryCount ¶ added in v0.1.2
func (b *BotManager) SetMaxRetryCount(maxRetryCount int)
func (*BotManager) SetSendDelayed ¶ added in v0.0.7
func (b *BotManager) SetSendDelayed(Millisecond int)
SetSendDelayed 设置发送消息的时延 单位毫秒 默认1000
func (*BotManager) UploadFileWithBase64 ¶ added in v0.1.1
func (b *BotManager) UploadFileWithBase64(FileName, FileBase64 string, ToUserUid int64, Notify bool) error
UploadFileWithBase64 上传群文件
func (*BotManager) UploadFileWithFilePath ¶ added in v0.1.1
func (b *BotManager) UploadFileWithFilePath(FilePath string, ToUserUid int64, Notify bool) error
UploadFileWithFilePath 上传群文件
func (*BotManager) UploadFileWithFileUrl ¶ added in v0.1.1
func (b *BotManager) UploadFileWithFileUrl(FileName, FileUrl string, ToUserUid int64, Notify bool) error
UploadFileWithFileUrl 上传群文件
func (*BotManager) Wait ¶ added in v0.1.2
func (b *BotManager) Wait()
type Context ¶ added in v0.1.0
type Context struct { Ban bool NowIndex int MaxIndex int Bot *BotManager // contains filtered or unexported fields }
type Cookie ¶ added in v0.1.3
type Cookie struct { ClientKey string `json:"ClientKey"` Cookies string `json:"Cookies"` Gtk string `json:"Gtk"` Gtk32 string `json:"Gtk32"` PSkey struct { Connect string `json:"connect"` Docs string `json:"docs"` Docx string `json:"docx"` Game string `json:"game"` Gamecenter string `json:"gamecenter"` Imgcache string `json:"imgcache"` MTencentCom string `json:"m.tencent.com"` Mail string `json:"mail"` Mma string `json:"mma"` Now string `json:"now"` Office string `json:"office"` Openmobile string `json:"openmobile"` Qqweb string `json:"qqweb"` Qun string `json:"qun"` Qzone string `json:"qzone"` QzoneCom string `json:"qzone.com"` TenpayCom string `json:"tenpay.com"` Ti string `json:"ti"` Vip string `json:"vip"` Weishi string `json:"weishi"` } `json:"PSkey"` Skey string `json:"Skey"` }
type FriendFileResult ¶ added in v0.0.7
type FriendList ¶ added in v0.1.0
type FriendList struct { FriendCount int `json:"Friend_count"` Friendlist []struct { FriendUin int64 `json:"FriendUin"` IsRemark bool `json:"IsRemark"` NickName string `json:"NickName"` OnlineStr string `json:"OnlineStr"` Remark string `json:"Remark"` Status int `json:"Status"` } `json:"Friendlist"` GetfriendCount int `json:"GetfriendCount"` StartIndex int `json:"StartIndex"` TotoalFriendCount int `json:"Totoal_friend_count"` }
FriendList 获取好友列表表单
type FriendMsgPack ¶ added in v0.0.2
type GroupAdminPack ¶ added in v0.0.2
type GroupAdminPack struct { Context EventData struct { Flag int `json:"Flag"` GroupID int64 `json:"GroupID"` UserID int64 `json:"UserID"` } `json:"EventData"` EventMsg struct { FromUin int64 `json:"FromUin"` ToUin int64 `json:"ToUin"` MsgType string `json:"MsgType"` MsgSeq int `json:"MsgSeq"` Content string `json:"Content"` RedBaginfo interface{} `json:"RedBaginfo"` } `json:"EventMsg"` }
type GroupAdminSysNotifyPack ¶ added in v0.0.2
type GroupAdminSysNotifyPack struct { Context EventData struct { Seq int64 `json:"Seq"` Type int `json:"Type"` MsgTypeStr string `json:"MsgTypeStr"` Who int `json:"Who"` WhoName string `json:"WhoName"` MsgStatusStr string `json:"MsgStatusStr"` Content string `json:"Content"` RefuseContent string `json:"RefuseContent"` Flag7 int `json:"Flag_7"` Flag8 int `json:"Flag_8"` GroupID int64 `json:"GroupId"` GroupName string `json:"GroupName"` ActionUin int64 `json:"ActionUin"` ActionName string `json:"ActionName"` ActionGroupCard string `json:"ActionGroupCard"` Action int `json:"Action"` } `json:"EventData"` EventMsg struct { FromUin int64 `json:"FromUin"` ToUin int64 `json:"ToUin"` MsgType string `json:"MsgType"` MsgSeq int `json:"MsgSeq"` Content string `json:"Content"` RedBaginfo interface{} `json:"RedBaginfo"` } `json:"EventMsg"` }
type GroupExitPack ¶ added in v0.0.2
type GroupExitPack struct { Context EventData struct { UserID int64 `json:"UserID"` } `json:"EventData"` EventMsg struct { FromUin int64 `json:"FromUin"` ToUin int64 `json:"ToUin"` MsgType string `json:"MsgType"` MsgSeq int `json:"MsgSeq"` Content string `json:"Content"` RedBaginfo interface{} `json:"RedBaginfo"` } `json:"EventMsg"` }
type GroupExitSuccessPack ¶ added in v0.0.2
type GroupExitSuccessPack struct { Context EventData struct { GroupID int64 `json:"GroupID"` } `json:"EventData"` EventMsg struct { FromUin int64 `json:"FromUin"` ToUin int64 `json:"ToUin"` MsgType string `json:"MsgType"` MsgSeq int `json:"MsgSeq"` Content string `json:"Content"` RedBaginfo interface{} `json:"RedBaginfo"` } `json:"EventMsg"` }
type GroupFileMsg ¶ added in v0.2.1
type GroupFileMsg struct { FileID string `json:"FileID"` FileName string `json:"FileName"` FileSize int `json:"FileSize"` Tips string `json:"Tips"` }
func ParserGroupFileMsg ¶ added in v0.2.1
func ParserGroupFileMsg(pack GroupMsgPack) (a GroupFileMsg, e error)
type GroupFileResult ¶ added in v0.0.7
type GroupJoinPack ¶ added in v0.0.2
type GroupJoinPack struct { Context EventData struct { InviteUin int64 `json:"InviteUin"` UserID int64 `json:"UserID"` UserName string `json:"UserName"` } `json:"EventData"` EventMsg struct { FromUin int64 `json:"FromUin"` ToUin int64 `json:"ToUin"` MsgType string `json:"MsgType"` MsgSeq int `json:"MsgSeq"` Content string `json:"Content"` RedBaginfo interface{} `json:"RedBaginfo"` } `json:"EventMsg"` }
type GroupList ¶ added in v0.1.0
type GroupList struct { Count int `json:"Count"` NextToken string `json:"NextToken"` TroopList []struct { GroupID int64 `json:"GroupId"` GroupMemberCount int64 `json:"GroupMemberCount"` GroupName string `json:"GroupName"` GroupNotice string `json:"GroupNotice"` GroupOwner int64 `json:"GroupOwner"` GroupTotalCount int `json:"GroupTotalCount"` } `json:"TroopList"` }
GroupList 获取群列表表单
type GroupMemberList ¶ added in v0.1.4
type GroupMemberList struct { Count int `json:"Count"` GroupUin int64 `json:"GroupUin"` LastUin int64 `json:"LastUin"` MemberList []struct { Age int `json:"Age"` AutoRemark string `json:"AutoRemark"` CreditLevel int `json:"CreditLevel"` Email string `json:"Email"` FaceID int `json:"FaceId"` Gender int `json:"Gender"` GroupAdmin int `json:"GroupAdmin"` GroupCard string `json:"GroupCard"` JoinTime int `json:"JoinTime"` LastSpeakTime int `json:"LastSpeakTime"` MemberLevel int `json:"MemberLevel"` MemberUin int64 `json:"MemberUin"` Memo string `json:"Memo"` NickName string `json:"NickName"` ShowName string `json:"ShowName"` SpecialTitle string `json:"SpecialTitle"` Status int `json:"Status"` } `json:"MemberList"` }
type GroupMsgPack ¶ added in v0.0.2
type GroupMsgPack struct { Context Content string `json:"Content"` FromGroupID int64 `json:"FromGroupId"` FromGroupName string `json:"FromGroupName"` FromNickName string `json:"FromNickName"` FromUserID int64 `json:"FromUserId"` MsgRandom int64 `json:"MsgRandom"` MsgSeq int `json:"MsgSeq"` MsgTime int `json:"MsgTime"` MsgType string `json:"MsgType"` RedBaginfo interface{} `json:"RedBaginfo"` }
type GroupRevokePack ¶ added in v0.0.2
type GroupRevokePack struct { Context EventData struct { AdminUserID int `json:"AdminUserID"` GroupID int64 `json:"GroupID"` MsgRandom int64 `json:"MsgRandom"` MsgSeq int `json:"MsgSeq"` UserID int64 `json:"UserID"` } `json:"EventData"` EventMsg struct { FromUin int64 `json:"FromUin"` ToUin int64 `json:"ToUin"` MsgType string `json:"MsgType"` MsgSeq int `json:"MsgSeq"` Content string `json:"Content"` RedBaginfo interface{} `json:"RedBaginfo"` } `json:"EventMsg"` }
type GroupShutPack ¶ added in v0.0.2
type GroupShutPack struct { Context EventData struct { GroupID int64 `json:"GroupID"` ShutTime int `json:"ShutTime"` UserID int64 `json:"UserID"` } `json:"EventData"` EventMsg struct { FromUin int64 `json:"FromUin"` ToUin int64 `json:"ToUin"` MsgType string `json:"MsgType"` MsgSeq int `json:"MsgSeq"` Content string `json:"Content"` RedBaginfo interface{} `json:"RedBaginfo"` } `json:"EventMsg"` }
type GroupSystemNotifyPack ¶ added in v0.0.2
type GroupSystemNotifyPack struct { Context EventData struct { Content string `json:"Content"` GroupID int64 `json:"GroupID"` UserID int64 `json:"UserID"` } `json:"EventData"` EventMsg struct { FromUin int64 `json:"FromUin"` ToUin int64 `json:"ToUin"` MsgType string `json:"MsgType"` MsgSeq int `json:"MsgSeq"` Content string `json:"Content"` RedBaginfo interface{} `json:"RedBaginfo"` } `json:"EventMsg"` }
type PicMsg ¶ added in v0.2.1
type PicMsg struct { Content string `json:"Content"` GroupPic []struct { FileId int64 `json:"FileId"` FileMd5 string `json:"FileMd5"` FileSize int `json:"FileSize"` ForwordBuf string `json:"ForwordBuf"` ForwordField int `json:"ForwordField"` Url string `json:"Url"` } `json:"GroupPic"` Tips string `json:"Tips"` UserExt []struct { QQNick string `json:"QQNick"` QQUid int64 `json:"QQUid"` } `json:"UserExt"` UserID []int64 `json:"UserID"` }
func ParserGroupPicMsg ¶ added in v0.2.1
func ParserGroupPicMsg(pack GroupMsgPack) (a PicMsg, e error)
type Reply ¶ added in v0.2.1
type Reply struct { Content string `json:"Content"` SrcContent string `json:"SrcContent"` MsgSeq int `json:"MsgSeq"` Tips string `json:"Tips"` UserID []int64 `json:"UserID"` }
func ParserGroupReplyMsg ¶ added in v0.2.1
func ParserGroupReplyMsg(pack GroupMsgPack) (a Reply, e error)
type SendMsgPack ¶
type SendTypeForwordContent ¶
type SendTypeJsonContent ¶
type SendTypeJsonContent struct {
Content string
}
type SendTypePicMsgByBase64Content ¶ added in v0.0.7
type SendTypePicMsgByBase64ContentPrivateChat ¶ added in v0.0.7
type SendTypeReplyContent ¶ added in v0.2.1
type SendTypeReplyContentPrivateChat ¶ added in v0.2.1
type SendTypeTextMsgContent ¶
type SendTypeTextMsgContent struct {
Content string
}
type SendTypeVoiceByLocalContent ¶
type SendTypeVoiceByLocalContent struct {
Path string
}
type SendTypeVoiceByUrlContent ¶
type SendTypeVoiceByUrlContent struct {
VoiceUrl string
}
type SendTypeXmlContent ¶
type SendTypeXmlContent struct {
Content string
}
type UserCardInfo ¶ added in v0.1.0
type UserInfo ¶ added in v0.0.7
type UserInfo struct { Code int `json:"code"` Data struct { Astro int `json:"astro"` AvatarURL string `json:"avatarUrl"` Bitmap string `json:"bitmap"` Bluevip int `json:"bluevip"` Commfrd int `json:"commfrd"` Friendship int `json:"friendship"` From string `json:"from"` Gender int `json:"gender"` Greenvip int `json:"greenvip"` IntimacyScore int `json:"intimacyScore"` IsFriend int `json:"isFriend"` Logolabel string `json:"logolabel"` Nickname string `json:"nickname"` Publicwalfare int `json:"publicwalfare"` Qqvip int `json:"qqvip"` Qzone int `json:"qzone"` Realname string `json:"realname"` Smartname string `json:"smartname"` Uin int64 `json:"uin"` } `json:"data"` Default int `json:"default"` Message string `json:"message"` Subcode int `json:"subcode"` }
UserInfo 用户信息表单
type VideoMsg ¶ added in v0.2.1
type VideoMsg struct { ForwordBuf string `json:"ForwordBuf"` ForwordField int `json:"ForwordField"` VideoMd5 string `json:"VideoMd5"` VideoSize string `json:"VideoSize"` VideoUrl string `json:"VideoUrl"` Tips string `json:"Tips"` }
func ParserVideoMsg ¶ added in v0.2.1
func ParserVideoMsg(pack GroupMsgPack) (a VideoMsg, e error)