hyperboria/nexus/hub/proto/submitter_service.proto
the-superpirate 7c1bb06b1b - [nexus] Development
GitOrigin-RevId: ccfd55db266862ed70f1299aaf62500765b03cc4
2022-09-06 19:35:58 +03:00

35 lines
668 B
Protocol Buffer

syntax = "proto3";
package nexus.hub.proto;
import "idm/api/proto/chat_manager_service.proto";
message PlainFile {
bytes data = 1;
string filename = 2;
}
message TelegramFile {
bytes document = 1;
string file_id = 2;
int64 message_id = 3;
}
message SubmitRequest {
oneof file {
TelegramFile telegram = 1;
PlainFile plain = 2;
}
idm.api.proto.Chat chat = 3;
string bot_name = 4;
optional int64 reply_to = 5;
optional string doi_hint = 6;
bool skip_analysis = 7;
int64 uploader_id = 8;
}
message SubmitResponse { }
service Submitter {
rpc submit(SubmitRequest) returns (SubmitResponse) {};
}