Skip to content

Commit fc1d9b8

Browse files
committed
group temp message
1 parent 1c1eb58 commit fc1d9b8

File tree

3 files changed

+41
-8
lines changed

3 files changed

+41
-8
lines changed

onebot_api.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,20 @@ message SetGroupSignInReq{
403403
message SetGroupSignInResp{
404404
}
405405

406+
message SendMusicReq{
407+
int64 group_id = 1;
408+
int64 user_id = 2;
409+
string type = 3;
410+
string title = 4;
411+
string brief = 5;
412+
string summary = 6;
413+
string url = 7;
414+
string picture_url = 8;
415+
string music_url = 9;
416+
}
417+
message SendMusicResp{
418+
}
419+
406420
message SendGroupPokeReq{
407421
int64 group_id = 1;
408422
int64 user_id = 2;

onebot_event.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,19 @@ message GroupMessageEvent{
5858
map<string, string> extra = 255;
5959
}
6060

61+
message GroupTempMessageEvent{
62+
int64 time = 1;
63+
int64 self_id = 2;
64+
string post_type = 3;
65+
string message_type = 4;
66+
int64 group_id = 7;
67+
int64 user_id = 8;
68+
repeated Message message = 10;
69+
string raw_message = 11;
70+
MessageReceipt message_id = 14;
71+
map<string, string> extra = 255;
72+
}
73+
6174
message GroupUploadNoticeEvent{
6275
int64 time = 1;
6376
int64 self_id = 2;

onebot_frame.proto

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ message Frame{
2323
FriendRecallNoticeEvent friend_recall_notice_event = 110;
2424
FriendRequestEvent friend_request_event = 111;
2525
GroupRequestEvent group_request_event = 112;
26+
GroupTempMessageEvent group_temp_message_event = 113;
2627

2728
SendPrivateMsgReq send_private_msg_req = 201;
2829
SendGroupMsgReq send_group_msg_req = 202;
@@ -63,8 +64,9 @@ message Frame{
6364
SetRestartReq set_restart_req = 237;
6465
CleanCacheReq clean_cache_req = 238;
6566
SetGroupSignInReq set_group_sign_in_req = 239;
66-
SendGroupPokeReq send_group_poke_req = 240;
67-
SendFriendPokeReq send_friend_poke_req = 241;
67+
SendMusicReq send_music_req = 240;
68+
SendGroupPokeReq send_group_poke_req = 241;
69+
SendFriendPokeReq send_friend_poke_req = 242;
6870

6971
SendPrivateMsgResp send_private_msg_resp = 301;
7072
SendGroupMsgResp send_group_msg_resp = 302;
@@ -105,8 +107,9 @@ message Frame{
105107
SetRestartResp set_restart_resp = 337;
106108
CleanCacheResp clean_cache_resp = 338;
107109
SetGroupSignInResp set_group_sign_in_resp = 339;
108-
SendGroupPokeResp send_group_poke_resp = 340;
109-
SendFriendPokeResp send_friend_poke_resp = 341;
110+
SendMusicResp send_music_resp = 340;
111+
SendGroupPokeResp send_group_poke_resp = 341;
112+
SendFriendPokeResp send_friend_poke_resp = 342;
110113
}
111114

112115
enum FrameType{
@@ -124,6 +127,7 @@ message Frame{
124127
TFriendRecallNoticeEvent = 110;
125128
TFriendRequestEvent = 111;
126129
TGroupRequestEvent = 112;
130+
TGroupTempMessageEvent = 113;
127131

128132
TSendPrivateMsgReq = 201;
129133
TSendGroupMsgReq = 202;
@@ -164,8 +168,9 @@ message Frame{
164168
TSetRestartReq = 237;
165169
TCleanCacheReq = 238;
166170
TSetGroupSignInReq = 239;
167-
TSendGroupPokeReq = 240;
168-
TSendFriendPokeReq = 241;
171+
TSendMusicReq = 240;
172+
TSendGroupPokeReq = 241;
173+
TSendFriendPokeReq = 242;
169174

170175

171176
TSendPrivateMsgResp = 301;
@@ -207,7 +212,8 @@ message Frame{
207212
TSetRestartResp = 337;
208213
TCleanCacheResp = 338;
209214
TSetGroupSignInResp = 339;
210-
TSendGroupPokeResp = 340;
211-
TSendFriendPokeResp = 341;
215+
TSendMusicResp = 340;
216+
TSendGroupPokeResp = 341;
217+
TSendFriendPokeResp = 342;
212218
}
213219
}

0 commit comments

Comments
 (0)