{"action":"created","issue":{"url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/40","repository_url":"https://api.github.com/repos/akalongman/php-telegram-bot","labels_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/40/comments","events_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/40/events","html_url":"https://github.com/akalongman/php-telegram-bot/issues/40","id":107345619,"number":40,"title":"Input is empty! - hook.php","user":{"login":"weiddolo","id":10815675,"avatar_url":"https://avatars.githubusercontent.com/u/10815675?v=3","gravatar_id":"","url":"https://api.github.com/users/weiddolo","html_url":"https://github.com/weiddolo","followers_url":"https://api.github.com/users/weiddolo/followers","following_url":"https://api.github.com/users/weiddolo/following{/other_user}","gists_url":"https://api.github.com/users/weiddolo/gists{/gist_id}","starred_url":"https://api.github.com/users/weiddolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weiddolo/subscriptions","organizations_url":"https://api.github.com/users/weiddolo/orgs","repos_url":"https://api.github.com/users/weiddolo/repos","events_url":"https://api.github.com/users/weiddolo/events{/privacy}","received_events_url":"https://api.github.com/users/weiddolo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-09-19T17:19:23Z","updated_at":"2016-04-26T08:40:47Z","closed_at":"2016-02-04T10:39:48Z","body":"I first used <strong>getUpdatesCLI.php</strong> and works properly every time i will refresh the page manually (Each refresh of the page the bot reply to me). It's ok!\r\n\r\nNow I wanted to try to set webhook. After setting the webhook (<strong>set.php</strong> - Webhook was set!), i try to write in the chat, but the bot does not reply to me .. Then I go to to <strong>hook.php</strong> page and i get this error:\r\n<code>Input is empty!</code>\r\n\r\nWhat wrong? <h3>The same configuration for getUpdatesCLI.php works</h3>\r\n\r\nThis is my <strong>hook.php</strong>:\r\n<pre>\r\n\t//Composer Loader\r\n\t$loader = require __DIR__.'/vendor/autoload.php';\r\n\t\r\n\t$API_KEY = 'XXXXXXXXXXXXX:XXXXXXXXXXXXX';\r\n\t$BOT_NAME = 'XXXXXXXXXXXXX';\r\n\t//$COMMANDS_FOLDER = __DIR__.'/src/Commands/';\r\n\t$credentials = array('host'=>'localhost', 'user'=>'XXXXXXXXXXXXX', 'password'=>'XXXXXXXXXXXXX', 'database'=>'XXXXXXXXXXXXX');\r\n\t\r\n\ttry {\r\n\t\t// create Telegram API object\r\n\t\t$telegram = new Longman\\TelegramBot\\Telegram($API_KEY, $BOT_NAME);\r\n\t\r\n\t\t//Options\r\n\t\r\n\t\t$telegram->enableMySQL($credentials);\r\n\t\t//$telegram->enableMySQL($credentials, $BOT_NAME.'_');\r\n\t\t//$telegram->addCommandsPath($COMMANDS_FOLDER);\r\n\t\t// here you can set some command specified parameters,\r\n\t\t// for example, google geocode/timezone api key for date command:\r\n\t\t//$telegram->setCommandConfig('date', array('google_api_key'=>'your_google_api_key_here'));\r\n\t\t//$telegram->setLogRequests(true);\r\n\t\t//$telegram->setLogPath($BOT_NAME.'.log');\r\n\t\r\n\t\r\n\t\t// handle telegram webhook request\r\n\t\t$telegram->handle();\r\n\t} catch (Longman\\TelegramBot\\Exception\\TelegramException $e) {\r\n\t\t// log telegram errors\r\n\t\techo $e->getMessage();\r\n\t}\r\n\r\n</pre>"},"comment":{"url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/comments/214669558","html_url":"https://github.com/akalongman/php-telegram-bot/issues/40#issuecomment-214669558","issue_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/40","id":214669558,"user":{"login":"antonanton","id":4908596,"avatar_url":"https://avatars.githubusercontent.com/u/4908596?v=3","gravatar_id":"","url":"https://api.github.com/users/antonanton","html_url":"https://github.com/antonanton","followers_url":"https://api.github.com/users/antonanton/followers","following_url":"https://api.github.com/users/antonanton/following{/other_user}","gists_url":"https://api.github.com/users/antonanton/gists{/gist_id}","starred_url":"https://api.github.com/users/antonanton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonanton/subscriptions","organizations_url":"https://api.github.com/users/antonanton/orgs","repos_url":"https://api.github.com/users/antonanton/repos","events_url":"https://api.github.com/users/antonanton/events{/privacy}","received_events_url":"https://api.github.com/users/antonanton/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T08:40:47Z","updated_at":"2016-04-26T08:40:47Z","body":"have the same problem. Web hook is set but hook.php says input is empty, bot does not respond"}}