syntax = "proto2";

package maps_adv.geosmb.tuner.proto.telegram;


message TelegramUser {
    required uint64 user_id = 1;
    required string user_login = 2;
}

message FetchTelegramUsersInput {
    repeated string user_logins = 1;
}

message FetchTelegramUsersOutput {
    repeated TelegramUser users = 1;
}

message CheckTelegramUserInput {
    required string user_login = 1;
}

message CheckTelegramUserOutput {
    required bool is_authorized = 1;
}
