feat(onebot): reply into group temp sessions (临时会话) (#212)
send_private_msg / send_msg can now reply to a group temp-session message by passing the source group_id. Inbound temp messages surface their source group on sender.group_id; a reply is only made into a temp session the bot has an inbound record of. Group temp replies route through RoutingHead.grpTmp (field 3).
This commit is contained in:
19 files changed
+311
-15
No files matched your search
@@ -21,9 +21,17 @@ export interface RoutingTrans0x211 {
|
||||
uid?: pb<8, string>;
|
||||
}
|
||||
|
||||
// Group temp-session routing head — RoutingHead field 3. Inner shape
|
||||
// { 群号 (source group), 对端 uid }.
|
||||
export interface RoutingGrpTmp {
|
||||
groupUin?: pb<3, uint_64>;
|
||||
toUid?: pb<4, string>;
|
||||
}
|
||||
|
||||
export interface RoutingHead {
|
||||
c2c?: pb<1, RoutingC2C>;
|
||||
grp?: pb<2, RoutingGroup>;
|
||||
grpTmp?: pb<3, RoutingGrpTmp>;
|
||||
trans0x211?: pb<15, RoutingTrans0x211>;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user