gmessages/libgm/binary/raw/messages.proto
2023-07-01 12:52:53 +03:00

86 lines
1.5 KiB
Protocol Buffer

syntax = "proto3";
package messages;
option go_package = "../../binary";
message EncodedPayload {
string requestID = 1;
int64 opcode = 2;
bytes encryptedData = 5;
string sessionID = 6;
}
message EncodedResponse {
string requestID = 1;
//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 {
string requestID = 1;
int64 routingOpCode = 2;
string ts1 = 3;
int64 field5 = 5;
string ts2 = 6;
string someString = 7;
Device mobile = 8;
Device browser = 9;
string encodedData = 12;
string encodedRequestID = 17;
MsgTypeArr msgTypeArr = 23;
}
message MsgTypeArr {
EmptyArr emptyArr = 1;
int64 msgType = 2;
}
message EmptyArr {
}
message AuthMessage {
string requestID = 1;
bytes rpcKey = 6;
Date date = 7;
}
message ReceiveMessagesRequest {
AuthMessage auth = 1;
message UnknownEmptyObject1 {}
message UnknownEmptyObject2 {
UnknownEmptyObject1 unknown = 2;
}
optional UnknownEmptyObject2 unknown = 4;
}
message BaseData {
int64 TTL = 2;
EmptyArr emptyArr = 6;
}
message RPCResponse {
bytes unknown = 1;
MessageData data = 2;
}
message Device {
int64 userID = 1;
string registrationID = 2;
string network = 3;
}
message Date {
int64 year = 3;
int64 seq1 = 4;
int64 seq2 = 5;
int64 seq3 = 7;
int64 seq4 = 9;
}