Kaamyabi
Member
I am triggering a messaging using a PHP script to my Telegram channel. I need to get it posted on Twitter. When i trigger the message using PHP below code, nothing is posted on twitter but if i manually type the message in the Telegram channel it get posted. Any help is appreciated.
$telegramURL = "https://api.telegram.org/bot{$botToken}/sendMessage?chat_id={$chatID}&text=" . urlencode($message) . "&parse_mode=HTML";
$response=file_get_contents($telegramURL); // This sends the message
$telegramURL = "https://api.telegram.org/bot{$botToken}/sendMessage?chat_id={$chatID}&text=" . urlencode($message) . "&parse_mode=HTML";
$response=file_get_contents($telegramURL); // This sends the message