شما باید از این کد استفده کنید
<?php
// When you have your own client ID and secret, put them down here:
$CLIENT_ID = "FREE_TRIAL_ACCOUNT";
$CLIENT_SECRET = "PUBLIC_SECRET";
$postData = array(
'number' => '12025550108', // Specify the recipient's number (NOT the gateway number) here.
'message' => 'Have a nice day! Loving you:)' // FIXME
);
$headers = array(
'Content-Type: application/json',
'X-WM-CLIENT-ID: '.$CLIENT_ID,
'X-WM-CLIENT-SECRET: '.$CLIENT_SECRET
);
$url = 'http://api.whatsmate.net/v1/telegram/single/message/0';
$ch = curl_init($url);
curl_setopt($ch, CURLO