Skip to content

Commit

Permalink
Fix dropping messages on the sender's side when Telegram is unavailab…
Browse files Browse the repository at this point in the history
…le (#11)
  • Loading branch information
KostyaEsmukov committed Jan 3, 2025
1 parent dcb7052 commit 204d318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smtp_to_telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func TelegramBotProcessorFactory(
if task == backends.TaskSaveMail {
err := SendEmailToTelegram(e, telegramConfig)
if err != nil {
return backends.NewResult(fmt.Sprintf("554 Error: %s", err)), err
return backends.NewResult(fmt.Sprintf("421 Error: %s", err)), err
}
return p.Process(e, task)
}
Expand Down

0 comments on commit 204d318

Please sign in to comment.