mirror of
https://github.com/nexus-stc/hyperboria
synced 2025-02-16 03:56:47 +01:00
35 lines
668 B
Protocol Buffer
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) {};
|
|
}
|