From 476645dcc6ecbe738e4c3f4963b7ed51c0e90924 Mon Sep 17 00:00:00 2001 From: hrvadl Date: Sun, 9 Jun 2024 15:03:19 +0300 Subject: [PATCH] feat: added join request approval log --- internal/handler/callback/handler.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/handler/callback/handler.go b/internal/handler/callback/handler.go index 3b09613..da420f4 100644 --- a/internal/handler/callback/handler.go +++ b/internal/handler/callback/handler.go @@ -53,6 +53,8 @@ func (h *handler) callbackQuery(ctx context.Context, bot *telego.Bot, query tele log.Error("Join request approve error", slog.Any("error", err)) } + log.Info("Successfuly approved join request") + msg = fmt.Sprintf(messages.Welcome, query.From.FirstName, viper.GetString("group-name")) case callbackdata.DeclineDecision: err = bot.DeclineChatJoinRequest(&telego.DeclineChatJoinRequestParams{