Skip to content

Commit

Permalink
feat: added join request approval log
Browse files Browse the repository at this point in the history
  • Loading branch information
hrvadl committed Jun 9, 2024
1 parent 8ea4f93 commit 476645d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/handler/callback/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 476645d

Please sign in to comment.