unreal4u / telegram-api

Complete async capable Telegram bot API implementation for PHP7
https://github.com/unreal4u/telegram-api/wiki
MIT License
790 stars 174 forks source link

Splitting too long messages into multiple messages #117

Open boesbo opened 4 years ago

boesbo commented 4 years ago

Which version are you using?

3.5.0

Splitting too long messages into multiple messages like this library does: https://github.com/php-telegram-bot/core

unreal4u commented 4 years ago

Hi!

Thanks for the idea, however I don't really know what you are referring to as I don't use the library you refer to.

Are you referring to the fact that the text of a message has to be less than 4096 bytes long or do you want an arbitrary stop? In that case; why does that belong in this library and is not implemented by the user?

Greetings.

boesbo commented 4 years ago

I'm saying that it would be useful to insert a logic in your library that: once the character limit is exceeded, it automatically splits into several messages. I sent you an example of a Telegram library that does this.