stop_server | R Documentation |
Stops listening on the webhook. Requires no parameters.
stop_server()
## Not run: # Example of a 'kill' command kill <- function(bot, update) { bot$sendMessage( chat_id = update$message$chat_id, text = "Bye!" ) # Stop the webhook webhook$stop_server() } webhook <- Webhook("https://example.com/webhook", "TOKEN") + CommandHandler("start", start) webhook$start_server() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.