{"action":"created","issue":{"url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/297","repository_url":"https://api.github.com/repos/akalongman/php-telegram-bot","labels_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/297/labels{/name}","comments_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/297/comments","events_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/297/events","html_url":"https://github.com/akalongman/php-telegram-bot/issues/297","id":178405889,"number":297,"title":"executeCommand with inlinekeyboard","user":{"login":"datrix88","id":22351479,"avatar_url":"https://avatars.githubusercontent.com/u/22351479?v=3","gravatar_id":"","url":"https://api.github.com/users/datrix88","html_url":"https://github.com/datrix88","followers_url":"https://api.github.com/users/datrix88/followers","following_url":"https://api.github.com/users/datrix88/following{/other_user}","gists_url":"https://api.github.com/users/datrix88/gists{/gist_id}","starred_url":"https://api.github.com/users/datrix88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datrix88/subscriptions","organizations_url":"https://api.github.com/users/datrix88/orgs","repos_url":"https://api.github.com/users/datrix88/repos","events_url":"https://api.github.com/users/datrix88/events{/privacy}","received_events_url":"https://api.github.com/users/datrix88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-21T17:01:03Z","updated_at":"2016-09-28T22:45:40Z","closed_at":null,"body":"Hi guys,  thanks for this awesome API for Telegram BOT.\r\n\r\nI have a problem when i try to execute a command in CallbackqueryCommand class.\r\nWhen i click on Inline button nothing is happening.\r\n\r\nIt's very strange because if i use executeCommand function on my other own command, it works fine.\r\n\r\n**This is my code:**\r\n\r\n```\r\n//StartCommand\r\n\r\n[....]\r\n\r\n$inline_keyboard = [\r\n            new InlineKeyboardButton(['text' => \"Add Category\", 'callback_data' => 'add']),\r\n            new InlineKeyboardButton(['text' => \"Help\", 'callback_data' => 'help'])\r\n];\r\n\r\n$data = [\r\n            'chat_id' => $chat_id,\r\n            'text' => $text,\r\n            'reply_markup' => new InlineKeyboardMarkup(['inline_keyboard' => [$inline_keyboard]]),\r\n            'parse_mode' => \"MARKDOWN\"\r\n];\r\n\r\n[....]\r\n\r\n//CallBackQueryCommand\r\n\r\n[....]\r\n\r\n$update = $this->getUpdate();\r\n$callback_query = $update->getCallbackQuery();\r\n$callback_query_id = $callback_query->getId();\r\n$callback_data = $callback_query->getData();\r\n$data['callback_query_id'] = $callback_query_id;\r\n\r\nif ($this->getTelegram()->getCommandObject($callback_data)){\r\n      return $this->getTelegram()->executeCommand($callback_data);\r\n}\r\n\r\n[....]\r\n\r\n```\r\n\r\nHow I can resolve this problem? \r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/comments/250323528","html_url":"https://github.com/akalongman/php-telegram-bot/issues/297#issuecomment-250323528","issue_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/297","id":250323528,"user":{"login":"MBoretto","id":6514506,"avatar_url":"https://avatars.githubusercontent.com/u/6514506?v=3","gravatar_id":"","url":"https://api.github.com/users/MBoretto","html_url":"https://github.com/MBoretto","followers_url":"https://api.github.com/users/MBoretto/followers","following_url":"https://api.github.com/users/MBoretto/following{/other_user}","gists_url":"https://api.github.com/users/MBoretto/gists{/gist_id}","starred_url":"https://api.github.com/users/MBoretto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MBoretto/subscriptions","organizations_url":"https://api.github.com/users/MBoretto/orgs","repos_url":"https://api.github.com/users/MBoretto/repos","events_url":"https://api.github.com/users/MBoretto/events{/privacy}","received_events_url":"https://api.github.com/users/MBoretto/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T22:45:40Z","updated_at":"2016-09-28T22:45:40Z","body":"probably $callback_data is wrong "}}
{"actor":{"display_login":"MBoretto"}}