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

InlineQueryResult

The base of inline query results


Description

Baseclass for the InlineQueryResult* classes.

Usage

InlineQueryResult(type, id, ...)

is.InlineQueryResult(x)

Arguments

type

Type of the result. See the documentation for a list of supported types.

id

Unique identifier for this result, 1-64 Bytes.

...

Additional parameters for the selected type. See the documentation for the description of the parameters depending on the InlineQueryResult type.

x

Object to be tested.

Examples

## Not run: 
document_url <- paste0(
  "https://github.com/ebeneditos/telegram.bot/raw/gh-pages/docs/",
  "telegram.bot.pdf"
)

result <- InlineQueryResult(
  type = "document",
  id = 1,
  title = "Documentation",
  document_url = document_url,
  mime_type = "application/pdf"
)

## 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.