<?php

$token = '';
$chat_id = '';

$params = [                
		'text' => 'Пример 1',			
];


$headers = [
		"Content-Type: application/json",                                
];

$url = "https://platform-api.max.ru/messages?access_token=" . $token . '&chat_id=' . $chat_id;
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
						
$response = curl_exec($ch);
curl_close($ch);
				 
echo $response;