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

ForceReply

Display a reply


Description

Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply').

Usage

ForceReply(force_reply = TRUE, selective = NULL)

Arguments

force_reply

Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'. Defaults to TRUE.

selective

(Optional). Use this parameter if you want to show the keyboard to specific users only.

Examples

## Not run: 
# Initialize bot
bot <- Bot(token = "TOKEN")
chat_id <- "CHAT_ID"

# Set input parameters
text <- "Don't forget to send me the answer!"

# Send reply message
bot$sendMessage(chat_id, text, reply_markup = ForceReply())

## End(Not run)

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.