Longman\TelegramBot\Commands\UserCommands\InlinekeyboardCommand::execute PHP Method

execute() public method

public execute ( )
    public function execute()
    {
        $chat_id = $this->getMessage()->getChat()->getId();
        $inline_keyboard = new InlineKeyboard([['text' => 'inline', 'switch_inline_query' => 'true'], ['text' => 'callback', 'callback_data' => 'identifier'], ['text' => 'open url', 'url' => 'https://github.com/akalongman/php-telegram-bot']]);
        $data = ['chat_id' => $chat_id, 'text' => 'inline keyboard', 'reply_markup' => $inline_keyboard];
        return Request::sendMessage($data);
    }
InlinekeyboardCommand