summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander NeonXP Kiryukhin <alexander@kiryukhin.su>2016-08-26 19:30:48 +0300
committerAlexander NeonXP Kiryukhin <alexander@kiryukhin.su>2016-08-26 19:30:48 +0300
commitdafe86edd1d3067599b716dd31bac6522bb85696 (patch)
tree75282422a97d9f35ac18e776823a3cc1fd11c9b6 /src
parent0c49b1861205a57551f48d88011ae194a06e061d (diff)
Fix cyrillic codesHEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/NeonXP/BotScript.php1
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);