e-caste / boggle-telegram-bot

A Telegram bot to play boggle (ITA: il paroliere) with friends
https://t.me/boggle_paroliere_bot
GNU General Public License v3.0
1 stars 0 forks source link

Split results message in multiple messages #32

Closed e-caste closed 4 years ago

e-caste commented 4 years ago

The max length of a message is 4096 characters.

e-caste commented 4 years ago

Simple idea: just send a message for each user in the group chat (the same the players receive in the private chat but without points), since it’s almost impossible a player could get to 4096 characters in a few minutes. That would mean, if every single word is striked, hence the long html tags (<strike> + </strike> have a total length of 8+9=17 characters), and the word is 10 letters long, which is hard in and of itself, that’d take around 151 words. I’d say it’s safe to assume this will never happen.