class

Tourmaline::Server

Inherits Reference / Object

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

Constructors

Instance 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.

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.

Source
stop_serving

Stops the webhook HTTP server

Source