View source: R/messagehandler.R
MessageHandler | R Documentation |
Handler
class to handle Telegram messages. They might contain
text, media or status updates.
MessageHandler(callback, filters = NULL)
callback |
The callback function for this handler.
See |
filters |
(Optional). Only allow updates with these filters. Use
|
An R6Class
object.
## Not run: callback_method <- function(bot, update) { chat_id <- update$message$chat_id bot$sendMessage(chat_id = chat_id, text = "Hello") } # No filtering message_handler <- MessageHandler(callback_method, MessageFilters$all) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.