aboutsummaryrefslogtreecommitdiffstats
path: root/telebot/protobuf/telegram.proto
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-11-12 10:56:12 +0000
committerterminaldweller <thabogre@gmail.com>2021-11-12 10:56:12 +0000
commitb75c53fa2ab99ccb368e1802ba32fae4b1f2b524 (patch)
treea643ce91f9ce7f9ff0e29d4e3df85d4f01a25286 /telebot/protobuf/telegram.proto
parentInitial commit (diff)
downloadgrpc-b75c53fa2ab99ccb368e1802ba32fae4b1f2b524.tar.gz
grpc-b75c53fa2ab99ccb368e1802ba32fae4b1f2b524.zip
protobuf for telebot
Diffstat (limited to 'telebot/protobuf/telegram.proto')
-rw-r--r--telebot/protobuf/telegram.proto22
1 files changed, 22 insertions, 0 deletions
diff --git a/telebot/protobuf/telegram.proto b/telebot/protobuf/telegram.proto
new file mode 100644
index 0000000..8a7e6be
--- /dev/null
+++ b/telebot/protobuf/telegram.proto
@@ -0,0 +1,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);
+}