You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Absolute path length calculating in "renderCallbackButtonTemplate" of "keyborad.js" does not consider that Cyrillic characters are 2 bytes in utf-8 encoding, so therefore it is not possible to understand that the length of the path fits the telegram api limit
To Reproduce
Steps to reproduce the behavior:
just make a callback button with path at example "очень длинный абсолютный путь больше 32 символов"
Expected behavior
An error should be thrown
The text was updated successfully, but these errors were encountered:
* Fix calculating button absolute path length
Fix calculating button absolute path length with non-Latin symbols according issue #183
* refactor(xo): adapt to lints
* test(keyboard): add testcase for cyrillic path
* Fix testcase for cyrillic path
* test(keyboard): fix too long callback data
The testcase was done misleading which resulted in to many characters.
Therefore it did not test what it was supposed to test.
Co-authored-by: EdJoPaTo <rfc-conform-git-commit-email@funny-long-domain-label-everyone-hates-as-it-is-too-long.edjopato.de>
Co-authored-by: bekmambek <instreelus2@gmail.com>
Describe the bug
Absolute path length calculating in "renderCallbackButtonTemplate" of "keyborad.js" does not consider that Cyrillic characters are 2 bytes in utf-8 encoding, so therefore it is not possible to understand that the length of the path fits the telegram api limit
To Reproduce
Steps to reproduce the behavior:
just make a callback button with path at example "очень длинный абсолютный путь больше 32 символов"
Expected behavior
An error should be thrown
The text was updated successfully, but these errors were encountered: