{"action":"created","issue":{"url":"https://api.github.com/repos/MrRoundRobin/telegram.bot/issues/73","labels_url":"https://api.github.com/repos/MrRoundRobin/telegram.bot/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/MrRoundRobin/telegram.bot/issues/73/comments","events_url":"https://api.github.com/repos/MrRoundRobin/telegram.bot/issues/73/events","html_url":"https://github.com/MrRoundRobin/telegram.bot/issues/73","id":125930251,"number":73,"title":"hellobot.php not receiving webhook calls","user":{"login":"alejandro-anv","id":2759349,"avatar_url":"https://avatars.githubusercontent.com/u/2759349?v=3","gravatar_id":"","url":"https://api.github.com/users/alejandro-anv","html_url":"https://github.com/alejandro-anv","followers_url":"https://api.github.com/users/alejandro-anv/followers","following_url":"https://api.github.com/users/alejandro-anv/following{/other_user}","gists_url":"https://api.github.com/users/alejandro-anv/gists{/gist_id}","starred_url":"https://api.github.com/users/alejandro-anv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alejandro-anv/subscriptions","organizations_url":"https://api.github.com/users/alejandro-anv/orgs","repos_url":"https://api.github.com/users/alejandro-anv/repos","events_url":"https://api.github.com/users/alejandro-anv/events{/privacy}","received_events_url":"https://api.github.com/users/alejandro-anv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MrRoundRobin/telegram.bot/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-11T12:13:12Z","updated_at":"2016-01-11T13:18:58Z","closed_at":"2016-01-11T13:14:43Z","body":"I am just testing Telegram bots. I downloaded hellobot php program from samples, placed on the root of the web server, and created a bot. Repllaced the BOT_TOKEN in the source and changed the WEBHIOOK_URL. \r\n\r\nExecuted the .php in command-line in order to register the webhook and the response was \"Request was successfull: Webhook was set\" but I don't receive any get or post for the URL I set.\r\n\r\nI think there may be a problem with the ssl certificate. It is a valid let's encrypt cert but I think may be it is not accepted. \r\n\r\nI also added the certificate field by insering the let's encrypt cert but I am not user this is the right way to do this:\r\n\r\napiRequest('setWebhook', array(\r\n    'url' => isset($argv[1]) && $argv[1] == 'delete' ? '' : WEBHOOK_URL\r\n   ,'certificate'=>file_get_contents('https://letsencrypt.org/certs/lets-encrypt-x1-cross-signed.pem')\r\n   ) );\r\n"},"comment":{"url":"https://api.github.com/repos/MrRoundRobin/telegram.bot/issues/comments/170545872","html_url":"https://github.com/MrRoundRobin/telegram.bot/issues/73#issuecomment-170545872","issue_url":"https://api.github.com/repos/MrRoundRobin/telegram.bot/issues/73","id":170545872,"user":{"login":"alejandro-anv","id":2759349,"avatar_url":"https://avatars.githubusercontent.com/u/2759349?v=3","gravatar_id":"","url":"https://api.github.com/users/alejandro-anv","html_url":"https://github.com/alejandro-anv","followers_url":"https://api.github.com/users/alejandro-anv/followers","following_url":"https://api.github.com/users/alejandro-anv/following{/other_user}","gists_url":"https://api.github.com/users/alejandro-anv/gists{/gist_id}","starred_url":"https://api.github.com/users/alejandro-anv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alejandro-anv/subscriptions","organizations_url":"https://api.github.com/users/alejandro-anv/orgs","repos_url":"https://api.github.com/users/alejandro-anv/repos","events_url":"https://api.github.com/users/alejandro-anv/events{/privacy}","received_events_url":"https://api.github.com/users/alejandro-anv/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T13:18:58Z","updated_at":"2016-01-11T13:18:58Z","body":"Hummm... but if I calls the URL from my browser, it works and the request is logged..."}}