TGBot {telegram}R Documentation

TGBot

Description

Package main class (implementing the Telegram bot).

Usage

TGBot

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

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

## End(Not run)

[Package telegram version 0.6.0 Index]