This object represents a Telegram Bot.
Bot(token, base_url = NULL, base_file_url = NULL,
request_config = NULL)Bot's unique authentication.
(Optional). Telegram Bot API service URL.
(Optional). Telegram Bot API file URL.
(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.
An R6Class object.
answerCallbackQuerySend answers to callback queries sent from inline keyboard
answerInlineQuerySend answers to an inline query
deleteMessageDelete a message
deleteWebhookRemove webhook integration
editMessageReplyMarkupEdit the reply markup of a message
forwardMessageForward messages of any kind
getFileGet info about a file and prepare it for downloading
getMeTest your bot's auth token
getUpdatesReceive incoming updates
getUserProfilePhotosGet a list of profile pictures for a user
getWebhookInfoGet current webhook status
leaveChatLeave a group, supergroup or channel
sendAnimationSend animation files
sendAudioSend audio files
sendChatActionTell the user that something is happening on the bot's side
sendDocumentSend general files
sendLocationSend point on the map
sendMessageSend text messages
sendPhotoSend image files
sendStickerSend .webp stickers
sendVideoSend mp4 videos
sendVideoNoteSend videos messages
sendVoiceSend .ogg files encoded with
OPUS
setWebhookReceive incoming updates via an outgoing webhook
clean_updatesClean any pending updates
set_tokenChange your bot's auth token
To take full advantage of this library take a look at Updater.
You can also use its methods snake_case equivalent.
# NOT RUN {
bot <- Bot(token = 'TOKEN')
# }
Run the code above in your browser using DataLab