aboutsummaryrefslogtreecommitdiffstats
path: root/protobuf/telegram.proto
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-07-22 02:31:43 +0000
committerterminaldweller <thabogre@gmail.com>2021-07-22 02:31:43 +0000
commit018d77f1c44e0d08025ce5240b1ed5c3c2887b0d (patch)
tree96e89a8a37962adbef8608208a88d8238dabf6d0 /protobuf/telegram.proto
parentadded graceful shutdown.fixed the -help crashing problem. wasnt setting the c... (diff)
downloadhived-018d77f1c44e0d08025ce5240b1ed5c3c2887b0d.tar.gz
hived-018d77f1c44e0d08025ce5240b1ed5c3c2887b0d.zip
want to switch to grpc for the telegram bot. obviously take the telegram bot out of hived. added a robots.txt hadnler
Diffstat (limited to 'protobuf/telegram.proto')
-rw-r--r--protobuf/telegram.proto22
1 files changed, 22 insertions, 0 deletions
diff --git a/protobuf/telegram.proto b/protobuf/telegram.proto
new file mode 100644
index 0000000..8a7e6be
--- /dev/null
+++ b/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);
+}