Closed jrischma closed 4 years ago
Hi, i have into same folder Telegram.php and test.php
test.php has:
include 'Telegram.php'; $bot_token = 'MY_TOKEN_BOT'; $telegram = new Telegram($bot_token); $chat_id = $telegram->ChatID(); $content = array('chat_id' => $chat_id, 'text' => 'Test'); $telegram->sendMessage($content);
http://my_ip/test.php return "HTTP ERROR 500"
what is wrong?
thanks!!
you shuold not visit your script url, but set a webhook and let Telegram contact it
Hi, i have into same folder Telegram.php and test.php
test.php has:
include 'Telegram.php'; $bot_token = 'MY_TOKEN_BOT'; $telegram = new Telegram($bot_token); $chat_id = $telegram->ChatID(); $content = array('chat_id' => $chat_id, 'text' => 'Test'); $telegram->sendMessage($content);
http://my_ip/test.php return "HTTP ERROR 500"
what is wrong?
thanks!!