Upon receiving a message with this object, Telegram clients will
remove the current custom keyboard and display the default
letter-keyboard. By default, custom keyboards are displayed until
a new keyboard is sent by a bot. An exception is made for one-time
keyboards that are hidden immediately after the user presses a
Requests clients to remove the custom keyboard.
(user will not be able to summon this keyboard; if you want to hide
the keyboard from sight but keep it accessible, use
(Optional). Use this parameter if you want to show the keyboard to specific users only.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
## Not run: # Initialize bot bot <- Bot(token = "TOKEN") chat_id <- "CHAT_ID" # Create Custom Keyboard text <- "Don't forget to send me the answer!" RKM <- ReplyKeyboardMarkup( keyboard = list( list(KeyboardButton("Yes, they certainly are!")), list(KeyboardButton("I'm not quite sure")), list(KeyboardButton('No...'))), resize_keyboard = FALSE, one_time_keyboard = FALSE ) # Send Custom Keyboard bot$sendMessage(chat_id, text, reply_markup = RKM) # Remove Keyboard bot$sendMessage(chat_id, "Okay, thanks!", reply_markup = ReplyKeyboardRemove()) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.