aboutsummaryrefslogtreecommitdiffstats
path: root/telebot/v1/telegram.proto
diff options
context:
space:
mode:
Diffstat (limited to 'telebot/v1/telegram.proto')
-rw-r--r--telebot/v1/telegram.proto22
1 files changed, 22 insertions, 0 deletions
diff --git a/telebot/v1/telegram.proto b/telebot/v1/telegram.proto
new file mode 100644
index 0000000..9a8ab6f
--- /dev/null
+++ b/telebot/v1/telegram.proto
@@ -0,0 +1,22 @@
+syntax= "proto3";
+package hived;
+
+import "google/protobuf/timestamp.proto";
+option go_package = "github.com/terminaldweller/grpc/telebot/protobuf/v1";
+
+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);
+}