github.com/LagrangeDev/LagrangeGo@v0.0.0-20240512064304-ad4a85e10cb4/client/packets/oidb/Poke.go (about) 1 package oidb 2 3 import ( 4 "github.com/LagrangeDev/LagrangeGo/client/packets/pb/service/oidb" 5 "github.com/RomiChan/protobuf/proto" 6 ) 7 8 func BuildGroupPokeReq(groupUin, uin uint32) (*OidbPacket, error) { 9 body := &oidb.OidbSvcTrpcTcp0XED3_1{ 10 Uin: uin, 11 GroupUin: groupUin, 12 Ext: proto.Some[uint32](0), 13 } 14 return BuildOidbPacket(0xED3, 1, body, false, false) 15 } 16 17 func BuildFriendPokeReq(uin uint32) (*OidbPacket, error) { 18 body := &oidb.OidbSvcTrpcTcp0XED3_1{ 19 Uin: uin, 20 FriendUin: uin, 21 Ext: proto.Some[uint32](0), 22 } 23 return BuildOidbPacket(0xED3, 1, body, false, false) 24 } 25 26 func ParsePokeResp(data []byte) error { 27 return CheckError(data) 28 }