Answer the question
In order to leave comments, you need to log in
Telegram API bot not sending php messages?
$telegram->sendMessage([ 'chat_id' => $chat_id, 'text' => "test"]); - if I just send it, it is delivered without problems, but it is not sent in the check with the team, the check passes, since the letter arrives successfully in the mail.
$result = $telegram -> getWebhookUpdates(); //Передаем в переменную $result полную информацию о сообщении пользователя
$text = mysqli_real_escape_string($connect, $result["message"]["text"]);
$chat_id = $result["message"]["chat"]["id"];
$data = $result['callback_query'];
$command = $data['data'];
$name = $result["message"]["from"]["username"];
if($command == '/plz'){
$cid = $result['callback_query']['id'];
$telegram->sendMessage([ 'chat_id' => $chat_id, 'text' => $cid]);
$telegram->answerCallbackQuery(['callback_query_id' => $cid]);
mail("[email protected]","test","$cid"); // чисто проверка
// break;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question