chore: tweak forwarded from message

This commit is contained in:
Steven
2024-06-10 13:48:37 +08:00
parent 5f0d592a4d
commit 9b9b7b694e

View File

@@ -127,9 +127,9 @@ 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)
content = fmt.Sprintf("Forwarded from [%s](https://t.me/%s)\n%s", originName, originUsername, content)
} else {
content = fmt.Sprintf("Forwarded from: %s\n%s", originName, content)
content = fmt.Sprintf("%s\n---\nForwarded from %s", originName, content)
}
}
@@ -252,7 +252,6 @@ func (s *Service) processFileMessage(ctx context.Context, b *bot.Bot, m *models.
}
}
func (s *Service) sendError(b *bot.Bot, chatID int64, err error) {
slog.Error("error", slog.Any("err", err))
b.SendMessage(context.Background(), &bot.SendMessageParams{