class Tourmaline::KemalAdapter

Defined in:

Constructors

Instance Method Summary

Constructor Detail

def self.new(bot : Tourmaline::Client, url : String, path = nil, certificate = nil, max_connections = nil) #

Create a new instance of TourmalineHandler

Requires a #bot instance, a #url, and an optional #path. The #url needs to be the publically accessable URL for the Kemal server. The #path defines where this will be served on your kemal instance. By default this is at /webhook/{bot.name}, but it is recommended to use your bot's API key somewhere in the path for security reasons.


Instance Method Detail

def bot : Tourmaline::Client #

def bot=(bot : Tourmaline::Client) #

def call(context) #

def check_config #

def path : String #

def path=(path : String) #

def set_webhook(certificate = nil, max_connections = nil) #

def unset_webhook #

def url : String #

def url=(url : String) #