From ae83679b2b164ebf79b3f04bc4e99b2bf7a6ed70 Mon Sep 17 00:00:00 2001 From: astra Date: Sat, 14 Feb 2026 18:51:47 +0100 Subject: [PATCH] Update string --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 50e3f03..abe6399 100644 --- a/main.go +++ b/main.go @@ -77,7 +77,7 @@ func main() { if update.Message.Chat.ID == b.Config.AdminChatId && update.Message.ReplyToMessage != nil { // handle admin declineion reason repliedMsg := update.Message.ReplyToMessage - if strings.Contains(repliedMsg.Text, "(no reason provided, reply to this to send one, prepend with + to also send to user)") { + if strings.Contains(repliedMsg.Text, "(no reason provided, reply to this to set one, prepend with + to also send to user)") { // now we need to make sure the one that declined it is the one replying lines := strings.Split(repliedMsg.Text, "\n") userString := "" @@ -241,7 +241,7 @@ func (bot *Bot) handleCallbackQuery(query *api.CallbackQuery) { edit := api.NewEditMessageText(bot.Config.AdminChatId, user.JoinRequestMessageID, fmt.Sprintf(AdminDeclinedMsg, userString, user.From.ID, user.JoinReason, adminUserString, time.Now().Format("2006-01-02 15:04:05"), - "(no reason provided, reply to this to send one, prepend with + to also send to user)")) + "(no reason provided, reply to this to set one, prepend with + to also send to user)")) edit.ParseMode = api.ModeHTML bot.API.Send(edit)