botfather: fix two remaining call sites after branding rebase
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:
parent
33e22308c6
commit
669e515061
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue