diff --git a/telegram/routines/joinchecker.go b/telegram/routines/joinchecker.go index 4dc101f..6374b4a 100644 --- a/telegram/routines/joinchecker.go +++ b/telegram/routines/joinchecker.go @@ -48,7 +48,7 @@ func (j joinCheckerRoutine) Update(botAPI *tgbotapi.BotAPI, update *tgbotapi.Upd markup := tgbotapi.NewInlineKeyboardMarkup(tasks...) - msg := tgbotapi.NewMessage(update.Message.Chat.ID, message2.ReplaceMessage(group.UserJoinMessage, update.Message.From)) + msg := tgbotapi.NewMessage(update.Message.Chat.ID, message2.ReplaceMessage(group.UserJoinMessage, &newUser)) msg.ParseMode = "Markdown" msg.ReplyMarkup = markup