aboutsummaryrefslogtreecommitdiffstats
path: root/telebot/protobuf/telegram.proto
blob: 8a7e6be36432c047c6cf2cd8d79694f124e692b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
syntax= "proto3";
package hived;

import "google/protobuf/timestamp.proto";
option go_package ="../protobuf";

message NotificationRequest {
  reserved 4 to 7;
  string notificationText = 1;
  int64 channel_id = 2;
  google.protobuf.Timestamp request_time = 3;
}

message NotificationResponse {
  reserved 3 to 6;
  string error = 2;
  bool isOK = 1;
}

service NotificationService {
  rpc Notify(NotificationRequest) returns (NotificationResponse);
}