F
F
Faceless2017-08-25 17:42:20
Bots
Faceless, 2017-08-25 17:42:20

Bot Telegram does not accept commands in Russian?

Hello. I ran into a problem, the telegram bot does not understand the text in Russian. Can this be bypassed somehow or does it not support Russian at all?
Example:
} else if ($text === "Hello" || $text === "Hi") {
apiRequest("sendMessage", array('chat_id' => $chat_id, "text" => 'Hello' ));
} else if (strpos($text, "/stop") === 0) {
// stop now
} else {
apiRequestWebhook("sendMessage", array('chat_id' => $chat_id, "reply_to_message_id" => $message_id , "text" => 'Cool'));
Accordingly, if you write "HI", then the bot answers "Hello". If you write "Hello", the answer will be "

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBrm1269, 2017-08-31
@iBrm1269

Replace || on OR

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question