Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

KeyboardButton

Create a keyboard button


Description

This object represents one button of the reply keyboard. Optional fields are mutually exclusive.

Usage

KeyboardButton(text, request_contact = NULL, request_location = NULL)

is.KeyboardButton(x)

Arguments

text

Text of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed.

request_contact

(Optional). If TRUE, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only.

request_location

(Optional). If TRUE, the user's current location will be sent when the button is pressed. Available in private chats only.

x

Object to be tested.

Details

Note: request_contact and request_location options will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.


telegram.bot

Develop a 'Telegram Bot' with R

v2.4.0
GPL-3
Authors
Ernest Benedito [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.