{"action":"created","issue":{"url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/354","repository_url":"https://api.github.com/repos/akalongman/php-telegram-bot","labels_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/354/labels{/name}","comments_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/354/comments","events_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/354/events","html_url":"https://github.com/akalongman/php-telegram-bot/issues/354","id":197280335,"number":354,"title":"non-ok replies from Telegram API stops execution","user":{"login":"jacklul","id":8418678,"avatar_url":"https://avatars.githubusercontent.com/u/8418678?v=3","gravatar_id":"","url":"https://api.github.com/users/jacklul","html_url":"https://github.com/jacklul","followers_url":"https://api.github.com/users/jacklul/followers","following_url":"https://api.github.com/users/jacklul/following{/other_user}","gists_url":"https://api.github.com/users/jacklul/gists{/gist_id}","starred_url":"https://api.github.com/users/jacklul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacklul/subscriptions","organizations_url":"https://api.github.com/users/jacklul/orgs","repos_url":"https://api.github.com/users/jacklul/repos","events_url":"https://api.github.com/users/jacklul/events{/privacy}","received_events_url":"https://api.github.com/users/jacklul/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-22T22:32:20Z","updated_at":"2017-01-01T10:19:00Z","closed_at":"2017-01-01T10:19:00Z","body":"*I could swear I mentioned this already...*\r\n\r\nBasically all fail replies from Telegram throw an exception, this is very bad behavior.\r\nThis prevents usage of any mass messaging commands (like announcements), because when one of the users blocks the bot library will throw exception and stop.\r\n\r\n```\r\nexception 'Longman\\TelegramBot\\Exception\\TelegramException' with message 'Client error: `POST https://api.telegram.org/bot123/editMessageText` resulted in a `400 Bad Request` response:\r\n{\"ok\":false,\"error_code\":400,\"description\":\"Bot was blocked by the user\"}\r\n```\r\n\r\nThis is seriously annoying and makes \r\n\r\n```php\r\n$result = Request::sendMessage($data)\r\n````\r\nuseless because any fail will stop the execution, so the developer can't properly react to failures.\r\n\r\n\r\nCan we have this fixed? This must have something to do with Guzzle and I wasn't been able to figure it out."},"comment":{"url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/comments/269897987","html_url":"https://github.com/akalongman/php-telegram-bot/issues/354#issuecomment-269897987","issue_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/354","id":269897987,"user":{"login":"jacklul","id":8418678,"avatar_url":"https://avatars.githubusercontent.com/u/8418678?v=3","gravatar_id":"","url":"https://api.github.com/users/jacklul","html_url":"https://github.com/jacklul","followers_url":"https://api.github.com/users/jacklul/followers","following_url":"https://api.github.com/users/jacklul/following{/other_user}","gists_url":"https://api.github.com/users/jacklul/gists{/gist_id}","starred_url":"https://api.github.com/users/jacklul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacklul/subscriptions","organizations_url":"https://api.github.com/users/jacklul/orgs","repos_url":"https://api.github.com/users/jacklul/repos","events_url":"https://api.github.com/users/jacklul/events{/privacy}","received_events_url":"https://api.github.com/users/jacklul/received_events","type":"User","site_admin":false},"created_at":"2017-01-01T10:19:00Z","updated_at":"2017-01-01T10:19:00Z","body":"Tested it, it's fixed now! :thumbsup:\r\n\r\nMaybe it was fixed at Guzzle's side?"}}
{"actor":{"display_login":"jacklul"}}