added ping to tg
All checks were successful
Lint / Lint (push) Successful in 2m17s

This commit is contained in:
Pasha 2024-12-09 15:54:11 +03:00 committed by skeris
parent bc433434a5
commit 513c1ffb14

@ -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,