Skip to content

Commit

Permalink
feat: added join request approval log (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrvadl authored Jun 10, 2024
1 parent 8ea4f93 commit 9ccb664
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/handler/callback/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func (h *handler) callbackQuery(ctx context.Context, bot *telego.Bot, query tele
log.Error("Join request approve error", slog.Any("error", err))
}

log.Info("Successfully 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 9ccb664

Please sign in to comment.