Bot doesn't respond because the output of /history is too long
CrsiX opened this issue · comments
Currently, as of 4e6d4d9, one can e.g. perform /history 10000
. The number is actually the max limit of printed history entries. The default value is 10
here, which is absolutely fine. However, the 10000
may lead to an internal error: telegram.error.BadRequest: Message is too long
(Telegram bots can't send messages bigger than 4k).
The bot should catch this exception and try to response with a small error message or alert box that the output message was too big and that the user should choose a smaller number of history entries.