gmessages/libgm/binary/raw/messages.proto

87 lines
1.5 KiB
Protocol Buffer
Raw Normal View History

2023-06-30 09:54:08 +00:00
syntax = "proto3";
package messages;
option go_package = "../../binary";
message EncodedPayload {
2023-06-30 13:26:46 +00:00
string requestID = 1;
2023-06-30 09:54:08 +00:00
int64 opcode = 2;
bytes encryptedData = 5;
2023-06-30 13:26:46 +00:00
string sessionID = 6;
2023-06-30 09:54:08 +00:00
}
message EncodedResponse {
2023-06-30 13:26:46 +00:00
string requestID = 1;
2023-06-30 09:54:08 +00:00
//int64 msg = 2;
int64 unixNano = 3;
int64 opcode = 4;
//bytes keyData = 5;
bool sub = 6;
int64 third = 7;
bytes encryptedData = 8;
bool field9 = 9;
}
message MessageData {
2023-06-30 13:26:46 +00:00
string requestID = 1;
int64 routingOpCode = 2;
2023-06-30 09:54:08 +00:00
string ts1 = 3;
int64 field5 = 5;
string ts2 = 6;
string someString = 7;
Device mobile = 8;
Device browser = 9;
string encodedData = 12;
2023-06-30 13:26:46 +00:00
string encodedRequestID = 17;
2023-06-30 09:54:08 +00:00
MsgTypeArr msgTypeArr = 23;
}
message MsgTypeArr {
EmptyArr emptyArr = 1;
int64 msgType = 2;
}
message EmptyArr {
}
message AuthMessage {
2023-06-30 13:26:46 +00:00
string requestID = 1;
bytes rpcKey = 6;
2023-06-30 09:54:08 +00:00
Date date = 7;
}
message ReceiveMessagesRequest {
2023-07-01 09:52:53 +00:00
AuthMessage auth = 1;
2023-07-01 09:52:53 +00:00
message UnknownEmptyObject1 {}
message UnknownEmptyObject2 {
UnknownEmptyObject1 unknown = 2;
}
optional UnknownEmptyObject2 unknown = 4;
2023-06-30 09:54:08 +00:00
}
message BaseData {
2023-06-30 13:26:46 +00:00
int64 TTL = 2;
2023-06-30 09:54:08 +00:00
EmptyArr emptyArr = 6;
}
message RPCResponse {
bytes unknown = 1;
MessageData data = 2;
}
message Device {
2023-06-30 13:26:46 +00:00
int64 userID = 1;
string registrationID = 2;
2023-06-30 09:54:08 +00:00
string network = 3;
}
message Date {
int64 year = 3;
int64 seq1 = 4;
int64 seq2 = 5;
int64 seq3 = 7;
int64 seq4 = 9;
}