botfather: fix two remaining call sites after branding rebase
Some checks are pending
CI / Go tests (push) Waiting to run
CI / Admin web build (push) Waiting to run
CI / Grammy store bot (push) Waiting to run
CI / Docker main topology smoke (push) Waiting to run

botFatherHelpText became a func() string during the rebase onto upstream
(matching upstream's own runtime-configurable-branding-safe pattern); two
call sites still referenced it as a bare value.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Astra 2026-09-14 12:12:13 +01:00
parent 33e22308c6
commit 669e515061

View file

@ -388,7 +388,7 @@ func (s *Service) handleBotFatherStart(ctx context.Context, userID int64, arg st
_ = s.bots.DeleteBotChatState(ctx, domain.BotFatherUserID, userID) _ = s.bots.DeleteBotChatState(ctx, domain.BotFatherUserID, userID)
want := strings.ToLower(strings.TrimPrefix(strings.TrimSpace(arg), "@")) want := strings.ToLower(strings.TrimPrefix(strings.TrimSpace(arg), "@"))
if want == "" { if want == "" {
return botReply{Text: botFatherHelpText} return botReply{Text: botFatherHelpText()}
} }
owned, err := s.ownedBots(ctx, userID) owned, err := s.ownedBots(ctx, userID)
if err != nil { if err != nil {
@ -411,7 +411,7 @@ func (s *Service) handleBotFatherStart(ctx context.Context, userID int64, arg st
return reply return reply
} }
} }
return botReply{Text: botFatherHelpText} return botReply{Text: botFatherHelpText()}
} }
func (s *Service) handleBotFatherCommand(ctx context.Context, userID int64, cmd string) botReply { func (s *Service) handleBotFatherCommand(ctx context.Context, userID int64, cmd string) botReply {