Skip to content

Commit

Permalink
group temp message
Browse files Browse the repository at this point in the history
  • Loading branch information
lz1998 committed Aug 12, 2022
1 parent 1c1eb58 commit fc1d9b8
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 8 deletions.
14 changes: 14 additions & 0 deletions onebot_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,20 @@ message SetGroupSignInReq{
message SetGroupSignInResp{
}

message SendMusicReq{
int64 group_id = 1;
int64 user_id = 2;
string type = 3;
string title = 4;
string brief = 5;
string summary = 6;
string url = 7;
string picture_url = 8;
string music_url = 9;
}
message SendMusicResp{
}

message SendGroupPokeReq{
int64 group_id = 1;
int64 user_id = 2;
Expand Down
13 changes: 13 additions & 0 deletions onebot_event.proto
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,19 @@ message GroupMessageEvent{
map<string, string> extra = 255;
}

message GroupTempMessageEvent{
int64 time = 1;
int64 self_id = 2;
string post_type = 3;
string message_type = 4;
int64 group_id = 7;
int64 user_id = 8;
repeated Message message = 10;
string raw_message = 11;
MessageReceipt message_id = 14;
map<string, string> extra = 255;
}

message GroupUploadNoticeEvent{
int64 time = 1;
int64 self_id = 2;
Expand Down
22 changes: 14 additions & 8 deletions onebot_frame.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ message Frame{
FriendRecallNoticeEvent friend_recall_notice_event = 110;
FriendRequestEvent friend_request_event = 111;
GroupRequestEvent group_request_event = 112;
GroupTempMessageEvent group_temp_message_event = 113;

SendPrivateMsgReq send_private_msg_req = 201;
SendGroupMsgReq send_group_msg_req = 202;
Expand Down Expand Up @@ -63,8 +64,9 @@ message Frame{
SetRestartReq set_restart_req = 237;
CleanCacheReq clean_cache_req = 238;
SetGroupSignInReq set_group_sign_in_req = 239;
SendGroupPokeReq send_group_poke_req = 240;
SendFriendPokeReq send_friend_poke_req = 241;
SendMusicReq send_music_req = 240;
SendGroupPokeReq send_group_poke_req = 241;
SendFriendPokeReq send_friend_poke_req = 242;

SendPrivateMsgResp send_private_msg_resp = 301;
SendGroupMsgResp send_group_msg_resp = 302;
Expand Down Expand Up @@ -105,8 +107,9 @@ message Frame{
SetRestartResp set_restart_resp = 337;
CleanCacheResp clean_cache_resp = 338;
SetGroupSignInResp set_group_sign_in_resp = 339;
SendGroupPokeResp send_group_poke_resp = 340;
SendFriendPokeResp send_friend_poke_resp = 341;
SendMusicResp send_music_resp = 340;
SendGroupPokeResp send_group_poke_resp = 341;
SendFriendPokeResp send_friend_poke_resp = 342;
}

enum FrameType{
Expand All @@ -124,6 +127,7 @@ message Frame{
TFriendRecallNoticeEvent = 110;
TFriendRequestEvent = 111;
TGroupRequestEvent = 112;
TGroupTempMessageEvent = 113;

TSendPrivateMsgReq = 201;
TSendGroupMsgReq = 202;
Expand Down Expand Up @@ -164,8 +168,9 @@ message Frame{
TSetRestartReq = 237;
TCleanCacheReq = 238;
TSetGroupSignInReq = 239;
TSendGroupPokeReq = 240;
TSendFriendPokeReq = 241;
TSendMusicReq = 240;
TSendGroupPokeReq = 241;
TSendFriendPokeReq = 242;


TSendPrivateMsgResp = 301;
Expand Down Expand Up @@ -207,7 +212,8 @@ message Frame{
TSetRestartResp = 337;
TCleanCacheResp = 338;
TSetGroupSignInResp = 339;
TSendGroupPokeResp = 340;
TSendFriendPokeResp = 341;
TSendMusicResp = 340;
TSendGroupPokeResp = 341;
TSendFriendPokeResp = 342;
}
}

0 comments on commit fc1d9b8

Please sign in to comment.