From dafe86edd1d3067599b716dd31bac6522bb85696 Mon Sep 17 00:00:00 2001 From: Alexander NeonXP Kiryukhin Date: Fri, 26 Aug 2016 19:30:48 +0300 Subject: Fix cyrillic codes --- src/NeonXP/BotScript.php | 1 + 1 file changed, 1 insertion(+) (limited to 'src/NeonXP') 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); -- cgit v1.2.3