class Tourmaline::Server
- Tourmaline::Server
- Reference
- Object
Overview
The Server
class is a basic webhook server for receiving
updates from the Telegram API.
Defined in:
tourmaline/server.crConstructors
Instance Method Summary
-
#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
andport
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
andport
that listens for updates using Telegram's webhooks. -
#stop_serving
Stops the webhook HTTP server
Constructor Detail
Instance Method Detail
def 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.
def 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.