goboter/proto/telegram_response.proto
2020-10-28 11:24:24 +01:00

29 lines
721 B
Protocol Buffer

syntax = "proto3";
package telegram;
import "telegram.proto";
message UserResponse {
bool ok = 1;
string description = 2; // Optional
int32 error_code = 3; // ok == false
ResponseParameters parameters = 4; // ok == false
User result = 5; // ok == true
}
message MessageResponse {
bool ok = 1;
string description = 2; // Optional
int32 error_code = 3; // ok == false
ResponseParameters parameters = 4; // ok == false
Message result = 5; // ok == true
}
message UpdateResponse {
bool ok = 1;
string description = 2; // Optional
int32 error_code = 3; // ok == false
ResponseParameters parameters = 4; // ok == false
repeated Update result = 5; // ok == true
}