Bot | R Documentation |
This object represents a Telegram Bot.
Bot(token, base_url = NULL, base_file_url = NULL, request_config = NULL) is.Bot(x)
token |
The bot's token given by the BotFather. |
base_url |
(Optional). Telegram Bot API service URL. |
base_file_url |
(Optional). Telegram Bot API file URL. |
request_config |
(Optional). Additional configuration settings
to be passed to the bot's POST requests. See the The |
x |
Object to be tested. |
An R6Class
object.
To take full advantage of this library take a look at Updater
.
You can also use its methods snake_case
equivalent.
answerCallbackQuery
Send answers to callback queries
answerInlineQuery
Send answers to an inline query
deleteMessage
Delete a message
deleteWebhook
Remove webhook integration
editMessageText
Edit a text message
editMessageCaption
Edit a caption
editMessageReplyMarkup
Edit the reply markup of a message
forwardMessage
Forward messages of any kind
getFile
Prepare a file for downloading
getMe
Check your bot's information
getUpdates
Receive incoming updates
getUserProfilePhotos
Get a user's profile photos
getWebhookInfo
Get current webhook status
leaveChat
Leave a chat
sendAnimation
Send animation files
sendAudio
Send audio files
sendChatAction
Send a chat action
sendDocument
Send general files
sendLocation
Send point on the map
sendMessage
Send text messages
sendPhoto
Send image files
sendSticker
Send a sticker
sendVideo
Send a video
sendVideoNote
Send video messages
sendVoice
Send voice files
setWebhook
Set a webhook
clean_updates
Clean any pending updates
set_token
Change your bot's auth token
## Not run: bot <- Bot(token = "TOKEN") # In case you want to set a proxy (see ?httr:use_proxy) bot <- Bot( token = "TOKEN", request_config = httr::use_proxy(...) ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.