aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docker-compose-test.yaml2
-rw-r--r--docker-compose.yaml2
-rw-r--r--hived/hived.go4
3 files changed, 4 insertions, 4 deletions
diff --git a/docker-compose-test.yaml b/docker-compose-test.yaml
index 8213acb..afee17a 100644
--- a/docker-compose-test.yaml
+++ b/docker-compose-test.yaml
@@ -30,7 +30,7 @@ services:
networks:
- telenet
ports:
- - "9009:9009"
+ - "9009:8000"
entrypoint: ["/telebot/docker-entrypoint.sh"]
cap_drop:
- ALL
diff --git a/docker-compose.yaml b/docker-compose.yaml
index ac9ef5e..90ff90d 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -34,7 +34,7 @@ services:
- telenet
restart: unless-stopped
ports:
- - "127.0.0.1:9009:9009"
+ - "127.0.0.1:9009:8000"
entrypoint: ["/telebot/docker-entrypoint.sh"]
cap_drop:
- ALL
diff --git a/hived/hived.go b/hived/hived.go
index b955986..d00f58d 100644
--- a/hived/hived.go
+++ b/hived/hived.go
@@ -60,7 +60,7 @@ func sendToTg(address, msg string, channelId int64) {
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
defer cancel()
- r, err := c.Notify(ctx, &pb.NotificationRequest{NotificationText: address, ChannelId: channelId})
+ r, err := c.Notify(ctx, &pb.NotificationRequest{NotificationText: msg, ChannelId: channelId})
if err != nil {
log.Fatal().Err(err)
}
@@ -385,7 +385,7 @@ func alertManager() {
if err != nil {
log.Fatal().Err(err)
}
- sendToTg("telebot:9009", msgText, tokenInt)
+ sendToTg("telebot:8000", msgText, tokenInt)
}
}