(Optional). Additional configuration settings
to be passed to the bot's POST requests. See the config
parameter from ?httr::POST for further details.
The request_config settings are very
useful for the advanced users who would like to control the
default timeouts and/or control the proxy used for HTTP communication.
x
Object to be tested.
API Methods
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
Other Methods
clean_updates
Clean any pending updates
set_token
Change your bot's auth token
Details
To take full advantage of this library take a look at Updater.
You can also use its methods snake_case equivalent.
if (FALSE) {
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(...)
)
}