orangecoding / fredy

:heart: Fredy - [F]ind [R]eal [E]states [D]amn Eas[y] - Fredy will constantly search for new listings on sites like Immoscout or Immowelt and send new results to you, so that you can focus on more important things in life ;)
http://www.orange-coding.net
MIT License
212 stars 54 forks source link

Telegram " description: 'Bad Request: message is too long'" #35

Closed coxtor closed 2 years ago

coxtor commented 2 years ago

Hi, awesome App! However, it would be greate to have smtp notification provider and I receive this error some times using telegram: data: { ok: false, error_code: 400, description: 'Bad Request: message is too long' } }, isAxiosError: true, toJSON: [Function: toJSON]

perhaps split too long messages in multiple messages ?

orangecoding commented 2 years ago

Thanks for the report! About the smtp, this is not too easy unfortunately, that's why I've decided to go with services like SendGrid. As for the error, I will check it.

orangecoding commented 2 years ago

@coxtor fixed with https://github.com/orangecoding/fredy/commit/8361d9c8ff5f33b87f50bd2d5c74d3250eb422fc