This commit is contained in:
手瓜一十雪
2025-05-18 20:42:03 +08:00
parent 3f60440e72
commit e9936c5524
5 changed files with 29 additions and 53 deletions

View File

@@ -30,13 +30,18 @@ export class PacketOperationContext {
return await this.context.client.sendOidbPacket(pkt, rsp);
}
async GroupPoke(groupUin: number, uin: number) {
const req = trans.SendPoke.build(true, groupUin, uin);
async GroupPoke(peer: number, uin: number) {
const req = trans.SendPoke.build(true, peer, uin);
await this.context.client.sendOidbPacket(req);
}
async FriendPoke(uin: number, target?: number) {
const req = trans.SendPoke.build(false, uin, target ?? uin);
async FriendPoke(peer: number, target?: number) {
const req = trans.SendPoke.build(false, peer, target ?? peer);
await this.context.client.sendOidbPacket(req);
}
async SendPoke(is_group: boolean, peer: number, target?: number) {
const req = trans.SendPoke.build(is_group, peer, target ?? peer);
await this.context.client.sendOidbPacket(req);
}