{"action":"closed","issue":{"url":"https://api.github.com/repos/zelenin/telegram-bot-api/issues/9","labels_url":"https://api.github.com/repos/zelenin/telegram-bot-api/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/zelenin/telegram-bot-api/issues/9/comments","events_url":"https://api.github.com/repos/zelenin/telegram-bot-api/issues/9/events","html_url":"https://github.com/zelenin/telegram-bot-api/issues/9","id":127164168,"number":9,"title":"error server","user":{"login":"farbodmahini","id":14240635,"avatar_url":"https://avatars.githubusercontent.com/u/14240635?v=3","gravatar_id":"","url":"https://api.github.com/users/farbodmahini","html_url":"https://github.com/farbodmahini","followers_url":"https://api.github.com/users/farbodmahini/followers","following_url":"https://api.github.com/users/farbodmahini/following{/other_user}","gists_url":"https://api.github.com/users/farbodmahini/gists{/gist_id}","starred_url":"https://api.github.com/users/farbodmahini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farbodmahini/subscriptions","organizations_url":"https://api.github.com/users/farbodmahini/orgs","repos_url":"https://api.github.com/users/farbodmahini/repos","events_url":"https://api.github.com/users/farbodmahini/events{/privacy}","received_events_url":"https://api.github.com/users/farbodmahini/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-18T06:47:19Z","updated_at":"2016-01-18T08:41:22Z","closed_at":"2016-01-18T08:41:22Z","body":"when i use your newest library , this code show me Error server,\r\nBut when i use your oldest version , show \"Code: 400. Description: \"[Error]: Bad Request: chat_id is empty\" and works fine !\r\nplease help me to work with your newes library !\r\n\r\n\r\nCode :\r\nrequire 'vendor/autoload.php';\r\nrequire 'lib/config.php'\r\n$client = new Zelenin\\Telegram\\Bot\\Api($token); // Set your access token\r\n$update = json_decode(file_get_contents('php://input'));\r\ntry {\r\n     $test = 'dgd';\r\n    $response = $client->sendMessage([\r\n        'chat_id' => $update->message->chat->id,\r\n        'text' => $test \r\n    ]);\r\n} catch (\\Zelenin\\Telegram\\Bot\\NotOkException $e) {\r\n    echo $e->getMessage();\r\n}"}}