Skip to content

class Tourmaline::Server
inherits Reference #

The Server class is a basic webhook server for receiving updates from the Telegram API.

Constructors#

Methods#

#serve(host = "127.0.0.1", port = 8081, ssl_certificate_path = nil, ssl_key_path = nil, no_middleware_check = false, &block : HTTP::Server::Context -> ) #

Start an HTTP server at the specified host and port that listens for updates using Telegram's webhooks.

View source

#serve(path = "/", host = "127.0.0.1", port = 8081, ssl_certificate_path = nil, ssl_key_path = nil, no_middleware_check = false) #

Start an HTTP server at the specified host and port that listens for updates using Telegram's webhooks.

View source

#stop_serving #

Stops the webhook HTTP server

View source