Documentation ¶
Index ¶
- Constants
- Variables
- type HOOK
- type TangentPC
- func (this *TangentPC) ChangeOnlineStatus(OnLineSts uint16) bool
- func (this TangentPC) CheckQRCode(resp *model.QRResp) uint8
- func (this *TangentPC) FetchQRCode() *model.QRResp
- func (this *TangentPC) GetCommonHttpConnSig(subCmd uint32) []byte
- func (this *TangentPC) GetGroupMemberCardFromCache(GroupUin, uin uint64) string
- func (this *TangentPC) GetJoinedGroupName(GroupUin uint64) string
- func (this *TangentPC) GetSelfInfo() model.Information
- func (this *TangentPC) GetServerMsg(Cmd, subCmd uint16, seq uint16, MsgInfo, data []byte)
- func (this *TangentPC) HeatBoat() bool
- func (this *TangentPC) Hook(GroupMsg func(Msg model.GroupMsg))
- func (this *TangentPC) Login(Password string)
- func (this *TangentPC) LoginByToken(tgt *model.TgtInfo) (code uint8, err error)
- func (this *TangentPC) NewLevelSpeedUp()
- func (this *TangentPC) PacketHttpConn(bin ...[]byte) []byte
- func (this *TangentPC) PingServer() bool
- func (this *TangentPC) QRLogin() (err error, tgt *model.TgtInfo)
- func (this *TangentPC) ReadGroupMsg(GroupCode uint64, MsgSeq uint32) bool
- func (this *TangentPC) ResetAccount(account string)
- func (this *TangentPC) RevokeGroupMessage(GroupCode uint64, MsgSeq, MsgID uint32) error
- func (this *TangentPC) SendFriendMsg(FriendUin uint64, Msg ...Msg.Builder) (Code bool, MsgSeq uint32)
- func (this *TangentPC) SendGroupMsg(GroupCode uint64, Msg ...Msg.Builder) (Code bool, MsgSeq uint32)
- func (this *TangentPC) U948() *TangentPC
Constants ¶
View Source
const ( SummaryNick = 0x4E_22 //qq昵称 SummaryQQAge = 0x65_97 //q龄 SummaryAge = 0x4E_45 //年龄 SummaryEmail = 0x4E_2B //邮箱 SummaryBirthday = 0x4E_3F //生日 )
View Source
const ( Online = 0x0A //在线 QMe = 0x3C //Q我吧 Leave = 0x1E //离开 Busy = 0x32 //忙碌 DND = 0x46 //勿扰 Invisible = 0x28 //隐身 )
Online 0A=在线,3C=Q我吧,1E=离开,32=忙碌,46=请勿打扰,28=隐身
View Source
const ( QRNoAgree = 0x1 /*已扫码但未点击确认*/ QRNoScan = 0x2 /*未扫码*/ QROk = model.LogicSuc /*已确认登录*/ QRUnKnow = 0xFF /*未响应*/ )
二维码状态标识
View Source
const ( LoginSuc = model.LogicSuc LoginNeedVerifyCode = 0xFB )
View Source
const (
Remark = 0x0D //备注信息
)
Variables ¶
View Source
var WaitTime = uint32(3) /*三秒延迟*/
Functions ¶
This section is empty.
Types ¶
type TangentPC ¶
type TangentPC struct { Uin uint64 // contains filtered or unexported fields }
func (*TangentPC) ChangeOnlineStatus ¶
ChangeOnlineStatus 修改在线状态
func (TangentPC) CheckQRCode ¶
CheckQRCode 检测二维码状态
func (*TangentPC) FetchQRCode ¶
FetchQRCode 获取登录二维码
func (*TangentPC) GetCommonHttpConnSig ¶
func (*TangentPC) GetGroupMemberCardFromCache ¶
GetGroupMemberCardFromCache 从缓存获取群员的群名片
func (*TangentPC) GetJoinedGroupName ¶
GetJoinedGroupName 获取已加入的群列表
func (*TangentPC) GetSelfInfo ¶
func (this *TangentPC) GetSelfInfo() model.Information
GetSelfInfo 获取账号信息
func (*TangentPC) GetServerMsg ¶
GetServerMsg 读取系统信息
func (*TangentPC) LoginByToken ¶
LoginByToken 令牌登录
func (*TangentPC) NewLevelSpeedUp ¶
func (this *TangentPC) NewLevelSpeedUp()
func (*TangentPC) PacketHttpConn ¶
func (*TangentPC) ResetAccount ¶
ResetAccount 账号重新设置
func (*TangentPC) RevokeGroupMessage ¶
RevokeGroupMessage 撤回消息 (:要有管理员权限
func (*TangentPC) SendFriendMsg ¶
Source Files ¶
- AllEvent.go
- ApiIm.go
- ApiInner.go
- ApiLogic.go
- ApiLogin.go
- Entities.go
- Fun0002_Cs.Im.Group.go
- Fun0017_SysEvent.go
- Fun001D_FetchToken.go
- Fun003C_Summary-Card.go
- Fun003E.go
- Fun0058_Heartbeat.go
- Fun00CD_SendFriendMsg.go
- Fun00CE.go
- Fun00EC_ChangeAccountStatus.go
- Fun01BB.go
- Fun03F7_RevokeGroupMessage.go
- Fun03FB_CliLogSvc.UploadReq.go
- Fun0818.go
- Fun0819.go
- Fun0825_PingServer.go
- Fun0828.go
- Fun0836_CheckTGTGT.go
- FunModel.go
- HttpConn.go
- Tangent-PC.go
- packet.go
- switch.go
Directories ¶
Path | Synopsis |
---|---|
protocal
|
|
Tlv
* @Author: Trial * @email: shenpan233@vip.qq.com * @app: 公共参数 * @Creat: 2021/11/26 0026 22:39
|
* @Author: Trial * @email: shenpan233@vip.qq.com * @app: 公共参数 * @Creat: 2021/11/26 0026 22:39 |
udper
* @Author: Trial * @email: shenpan233@vip.qq.com * @app: 发送 * @Creat: 2021/11/27 0027 13:10
|
* @Author: Trial * @email: shenpan233@vip.qq.com * @app: 发送 * @Creat: 2021/11/27 0027 13:10 |
Click to show internal directories.
Click to hide internal directories.