Telegram-bot-sdk: How send Inline Keyboard Markup?

Created on 8 Sep 2019  路  7Comments  路  Source: irazasyed/telegram-bot-sdk

In the documentation, I only found how to send ReplyKeyboardMarkup. And InlineKeyboardMarkup is not.

Example
AB7DF9B6-0EF2-42E0-84D1-2C50FEAA48C1

Most helpful comment

Method [replyKeyboardMarkup] does not exist.

All 7 comments

馃憢 Thanks for opening your first issue here! If you're reporting a 馃悶 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

@alekssamos what version are you using?

@alekssamos what version are you using?

@yongkylie v2.2.0

Code example on 2.*

$inline_keyboard[] = [
                    [
                        'text' =>'title',
                        'callback_data' => 'some data'
                    ]
                ];

$reply_markup = Telegram::replyKeyboardMarkup([
                'inline_keyboard' => $inline_keyboard,
                'resize_keyboard' => true
            ]);

$response = Telegram::sendMessage([
                'text' => 'Message',
                'reply_markup' => $reply_markup,
                'chat_id' => $chatId
            ]);

Method [replyKeyboardMarkup] does not exist.

@MrThursby +1

@qwertynik This method was removed (or renamed or moved), but the docs were not updated...
To create a keyboard, use the Telegram\Bot\Keyboard class;

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mccarlosen picture mccarlosen  路  3Comments

maminbajand picture maminbajand  路  4Comments

realtebo picture realtebo  路  4Comments

nanangkoesharwanto picture nanangkoesharwanto  路  3Comments

behnamazimi picture behnamazimi  路  4Comments