diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/NeonXP/BotScript.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/NeonXP/BotScript.php b/src/NeonXP/BotScript.php index 12313d2..54a6c90 100644 --- a/src/NeonXP/BotScript.php +++ b/src/NeonXP/BotScript.php @@ -34,6 +34,7 @@ class BotScript }; $sendCode = function (Message $message, Telegram $telegram) use ($dozorApi) { $code = trim(substr($message->getText(), 1)); + $code = iconv('utf8', 'cp1251', $code); $result = false; try { $result = $dozorApi->sendCode($message->getChat(), $code); |