powered by
Package main class (implementing the Telegram bot).
TGBot
An R6Class generator object.
R6Class
forwardMessage
forward messages of any kind
getFile
get info about a file and download it
getMe
test your bot's auth token
getUpdates
receive incoming updates
getUserProfilePhotos
get a list of profile pictures for a user
sendAudio
send mp3 files
mp3
sendDocument
send general files
sendLocation
send point on the map
sendMessage
send text messages
sendPhoto
send image files
sendSticker
send .webp stickers
.webp
sendVideo
send mp4 videos
mp4
sendVoice
send ogg files encoded with OPUS
Bots: An introduction for developers and Telegram Bot API
if (FALSE) { bot <- TGBot$new(token = bot_token('RBot')) }
Run the code above in your browser using DataLab