Creating a Bot
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.
answerCallbackQuerySend answers to callback queries
answerInlineQuerySend answers to an inline query
deleteMessageDelete a message
deleteWebhookRemove webhook integration
editMessageTextEdit a text message
editMessageCaptionEdit a caption
editMessageReplyMarkupEdit the reply markup of a message
forwardMessageForward messages of any kind
getFilePrepare a file for downloading
getMeCheck your bot's information
getUpdatesReceive incoming updates
getUserProfilePhotosGet a user's profile photos
getWebhookInfoGet current webhook status
leaveChatLeave a chat
sendAnimationSend animation files
sendAudioSend audio files
sendChatActionSend a chat action
sendDocumentSend general files
sendLocationSend point on the map
sendMessageSend text messages
sendPhotoSend image files
sendStickerSend a sticker
sendVideoSend a video
sendVideoNoteSend video messages
sendVoiceSend voice files
setWebhookSet a webhook
clean_updatesClean any pending updates
set_tokenChange 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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.