Learn R Programming

telegram (version 0.5.0)

TGBot: TGBot

Description

Package main class (implementing the Telegram bot).

Usage

TGBot

Arguments

Format

An R6Class generator object.

API Methods

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
sendDocument
send general files
sendLocation
send point on the map
sendMessage
send text messages
sendPhoto
send image files
sendSticker
send .webp stickers
sendVideo
send mp4 videos
sendVoice
send ogg files encoded with OPUS

References

Bots: An introduction for developers and Telegram Bot API

Examples

Run this code
## Not run: 
# bot <- TGBot$new(token = bot_token('RBot'))
# ## End(Not run)

Run the code above in your browser using DataLab