TGBot

Share:

Description

Package main class (implementing the Telegram bot).

Usage

1

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

1
2
3
4
## Not run: 
bot <- TGBot$new(token = bot_token('RBot'))

## End(Not run)