Tourmaline::Server
The Server class is a basic webhook server for receiving
updates from the Telegram API.
Constructors
new(client : Tourmaline::Client)
SourceInstance 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.
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.