Closed zedeus closed 6 years ago
When parsing a message like the following: nim can target C/C++/JS or . /start Nim spits out an exception:
nim can target C/C++/JS
. /start
Exception message: value out of range: -18 Exception type: [RangeError]
For some reason, Telegram allows commands anywhere in a message after a non-alphanumeric character, but the offset isn't taken into consideration.
When parsing a message like the following:
nim can target C/C++/JS
or. /start
Nim spits out an exception:For some reason, Telegram allows commands anywhere in a message after a non-alphanumeric character, but the offset isn't taken into consideration.