2020-07-25 12:13:23 +01:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2021-08-06 16:40:23 +01:00
|
|
|
option go_package = "./;protobuf";
|
2020-07-25 12:13:23 +01:00
|
|
|
package protobuf;
|
|
|
|
|
|
|
|
enum MessageType {
|
|
|
|
UNKNOWN_MESSAGE_TYPE = 0;
|
|
|
|
ONE_TO_ONE = 1;
|
|
|
|
PUBLIC_GROUP = 2;
|
|
|
|
PRIVATE_GROUP = 3;
|
|
|
|
// Only local
|
|
|
|
SYSTEM_MESSAGE_PRIVATE_GROUP = 4;
|
2020-11-18 10:16:51 +01:00
|
|
|
COMMUNITY_CHAT = 5;
|
2021-03-25 16:15:22 +01:00
|
|
|
// Only local
|
|
|
|
SYSTEM_MESSAGE_GAP = 6;
|
2020-09-29 13:38:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
enum ImageType {
|
|
|
|
UNKNOWN_IMAGE_TYPE = 0;
|
2020-09-29 13:51:35 +01:00
|
|
|
|
|
|
|
// Raster image files is payload data that can be read as a raster image
|
2020-09-29 13:38:52 +01:00
|
|
|
PNG = 1;
|
|
|
|
JPEG = 2;
|
|
|
|
WEBP = 3;
|
|
|
|
GIF = 4;
|
|
|
|
}
|