Skip to content

Instantly share code, notes, and snippets.

@andreafortuna andreafortuna/telegram_echo_bot.php Secret

Last active Jan 25, 2018
What would you like to do?
Simple Telegram Echo Bot
call_user_func(function($hookObj){file_get_contents("<YOURTOKEN>/sendMessage?chat_id=" .$hookObj["message"]["chat"]["id"] . "&text=" . urlencode($hookObj['message']['text']));},json_decode(file_get_contents("php://input"), true));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.