The project is still in an early phase, but some basic functionality is already working.
This is essentially a wrapper for the telegram bot API.
The idea is to use the telegram bot API to send
directly from R to your smartphone.
You can install the package directly from github with the devtools
package:
library(devtools)
install_github("ja-thomas/RTelegram")
Or you can just clone this repository and load it in R via:
library(devtools)
load_all("[path]/RTelegram")
To create a bot you first have to use the botfather. For an in depth introduction on how to create a bot visit the telegram bot FAQ.
After creating a bot you recieve a token
.
You can check if your bot works with the validate_bot()
function
For security reasons bots are only allowed to send messages to real accounts after they recieved a message from that person.
After sending your bot a message from your telegram app, you can call recieve_chat_id()
to get your chat_id
.
Only with the correct token
and chat_id
you are able to send messages from R to your smartphone.
Now you can send messages with send_message()
and images with send_image()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.