{"action":"created","issue":{"url":"https://api.github.com/repos/php-telegram-bot/core/issues/775","repository_url":"https://api.github.com/repos/php-telegram-bot/core","labels_url":"https://api.github.com/repos/php-telegram-bot/core/issues/775/labels{/name}","comments_url":"https://api.github.com/repos/php-telegram-bot/core/issues/775/comments","events_url":"https://api.github.com/repos/php-telegram-bot/core/issues/775/events","html_url":"https://github.com/php-telegram-bot/core/issues/775","id":296061754,"number":775,"title":"Callback not working in StartCommand","user":{"login":"sergey89d","id":21147339,"avatar_url":"https://avatars2.githubusercontent.com/u/21147339?v=4","gravatar_id":"","url":"https://api.github.com/users/sergey89d","html_url":"https://github.com/sergey89d","followers_url":"https://api.github.com/users/sergey89d/followers","following_url":"https://api.github.com/users/sergey89d/following{/other_user}","gists_url":"https://api.github.com/users/sergey89d/gists{/gist_id}","starred_url":"https://api.github.com/users/sergey89d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergey89d/subscriptions","organizations_url":"https://api.github.com/users/sergey89d/orgs","repos_url":"https://api.github.com/users/sergey89d/repos","events_url":"https://api.github.com/users/sergey89d/events{/privacy}","received_events_url":"https://api.github.com/users/sergey89d/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-02-10T01:38:11Z","updated_at":"2018-02-12T10:06:53Z","closed_at":null,"author_association":"NONE","body":"# **How to get data from callback_data ?**\r\n\r\n### Required Information\r\n- Operating system: ubuntu 17.10\r\n- PHP version: php7.1-fpm\r\n- PHP Telegram Bot version: 0.52\r\n- Using MySQL database: yes\r\n- MySQL version: 5.7\r\n- Update Method: Webhook\r\n- Self-signed certificate: yes\r\n\r\n### Expected behaviour\r\nIn the logs there is an answer, but I dont see him in the bot. And me need save in cookie language code uz or ua.\r\n\r\n### Extra details\r\n```php\r\n\r\npublic function execute()\r\n    {\r\n        $lang = Lang::chooseLang();\r\n\r\n        $inlineKeyboard = new InlineKeyboard([\r\n            ['text' => 'Украинский', 'callback_data' => 'ua'],\r\n            ['text' => 'Узбекский', 'callback_data' => 'uz'],\r\n        ]);\r\n\r\n        $data = [\r\n            'chat_id' => $this->getMessage()->getChat()->getId(),\r\n            'text' => $lang[ 'choose_lang' ],\r\n            'reply_markup' => $inlineKeyboard\r\n        ];\r\n        Request::sendMessage($data); // its working\r\n\r\n        $callbackAnswer = [\r\n            'callback_query_id' => $this->getCallbackQuery()->getId(),\r\n            'text'              => $this->getCallbackQuery()->getData(),\r\n            'show_alert'        => true,\r\n            'cache_time'        => 0\r\n        ];\r\n\r\n        return Request::answerCallbackQuery($callbackAnswer); // its not working\r\n        // And i still tried  Request::sendMessage($callbackAnswer); // its not working too\r\n    }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/php-telegram-bot/core/issues/comments/364877697","html_url":"https://github.com/php-telegram-bot/core/issues/775#issuecomment-364877697","issue_url":"https://api.github.com/repos/php-telegram-bot/core/issues/775","id":364877697,"user":{"login":"sergey89d","id":21147339,"avatar_url":"https://avatars2.githubusercontent.com/u/21147339?v=4","gravatar_id":"","url":"https://api.github.com/users/sergey89d","html_url":"https://github.com/sergey89d","followers_url":"https://api.github.com/users/sergey89d/followers","following_url":"https://api.github.com/users/sergey89d/following{/other_user}","gists_url":"https://api.github.com/users/sergey89d/gists{/gist_id}","starred_url":"https://api.github.com/users/sergey89d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergey89d/subscriptions","organizations_url":"https://api.github.com/users/sergey89d/orgs","repos_url":"https://api.github.com/users/sergey89d/repos","events_url":"https://api.github.com/users/sergey89d/events{/privacy}","received_events_url":"https://api.github.com/users/sergey89d/received_events","type":"User","site_admin":false},"created_at":"2018-02-12T10:06:53Z","updated_at":"2018-02-12T10:06:53Z","author_association":"NONE","body":"The operator will be like an admin, but he should not know about admin commands\r\n"}}
{"actor":{"display_login":"sergey89d"}}