From 513c1ffb1444ce1f2a16474c1ed6a2a6e0d301bf Mon Sep 17 00:00:00 2001 From: Pasha Date: Mon, 9 Dec 2024 15:54:11 +0300 Subject: [PATCH] added ping to tg --- internal/app/app.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/app/app.go b/internal/app/app.go index 9b2c5bf..cb2fa00 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -9,6 +9,7 @@ import ( "gitea.pena/PenaSide/heruvym/pkg/closer" "gitea.pena/PenaSide/hlog" "go.uber.org/zap" + tb "gopkg.in/tucnak/telebot.v2" "strconv" "time" ) @@ -93,6 +94,10 @@ func Run(ctx context.Context, cfg initialize.Config, build Build) error { return err } + if _, err = tgBot.Send(tb.ChatID(cfg.TelegramChannelID), "PING MSG from heruvym"); err != nil { + return err + } + repositories, err := initialize.NewRepositories(ctx, initialize.DepsRepositories{ MinioClient: minioClient, MongoDatabase: mdb,