node-telegram-bot-api icon indicating copy to clipboard operation
node-telegram-bot-api copied to clipboard

Sending long messages

Open Polm90 opened this issue 3 years ago • 0 comments

Hi, if you try to send a long message (over 4000 characters) you receive a 400 error from the telegram server for a too long message. This is something which is not (well) documented (I think it should be written better in the docs).

Can someone suggest a smart way to handle this (ie splitting in the right way the message, without cutting html tags, and sending each part subsequently?

However, it would be nice if the libraries could handle directly this, allowing the user to send too long messages in the right way :)

Thank you!

Polm90 avatar Oct 21 '22 07:10 Polm90