fix: "forwarded from" string formatting (#21)

This commit is contained in:
Alpaim
2024-06-10 16:49:44 +03:00
committed by GitHub
parent 24a9218d46
commit 0c50b9ec1a

View File

@@ -129,7 +129,7 @@ func (s *Service) handler(ctx context.Context, b *bot.Bot, m *models.Update) {
if originUsername != "" {
content = fmt.Sprintf("Forwarded from [%s](https://t.me/%s)\n%s", originName, originUsername, content)
} else {
content = fmt.Sprintf("%s\n---\nForwarded from %s", originName, content)
content = fmt.Sprintf("Forwarded from %s\n%s", originName, content)
}
}