function message_to_telegram($message)
{
global $tg_token;
global $encodedMarkup;
$ch = curl_init();
curl_setopt_array(
$ch,
array(
CURLOPT_URL => 'https://api.telegram.org/bot' . $tg_token . '/sendMessage',
CURLOPT_POST => TRUE,
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_TIMEOUT => 10,
CURLOPT_POSTFIELDS => array(
'chat_id' => "-540033367",
'text' => $message,
'InlineMarkup' => $encodedMarkup,
'parse_mode' => 'Markdown',
),
)
);
curl_exec($ch);
}
$replyMarkup = array(
'keyboard' => array(
array("Одобрено", "не Одобрено")
)
);