Learn R Programming

telegram.bot (version 2.0.0)

InlineQueryResult: InlineQueryResult

Description

Baseclass for the InlineQueryResult* classes.

Usage

InlineQueryResult(type, id, ...)

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

Examples

Run this code
# NOT RUN {
document_url <- "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")
# }

Run the code above in your browser using DataLab