Telegram-bot-sdk: ReplyKeyboardRemove

Created on 22 Nov 2016  路  2Comments  路  Source: irazasyed/telegram-bot-sdk

Most helpful comment

Solved.

$reply_markup = json_encode([
    'remove_keyboard' => true,
]);

$telegram->sendMessage([
    // other fields
    'reply_markup' => $reply_markup,
]);

All 2 comments

Solved.

$reply_markup = json_encode([
    'remove_keyboard' => true,
]);

$telegram->sendMessage([
    // other fields
    'reply_markup' => $reply_markup,
]);

for SDK >= 3.0

use Telegram\Bot\Keyboard\Keyboard;

...

$reply_markup = Keyboard::remove();

$telegram->sendMessage([
// other fields
'reply_markup' => $reply_markup,
]);

Was this page helpful?
0 / 5 - 0 ratings

Related issues

khalilst picture khalilst  路  3Comments

mccarlosen picture mccarlosen  路  3Comments

behnamazimi picture behnamazimi  路  3Comments

Enelar picture Enelar  路  3Comments

behnamazimi picture behnamazimi  路  4Comments