mirror of
https://github.com/kemko/memes-telegram-integration.git
synced 2026-01-01 15:55:41 +03:00
chore: tweak forwarded from message
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user