class Telecr::Webhook::Server

Defined in:

webhook/webhook.cr

Constant Summary

Log = ::Log.for("telecr.webhook")

Constructors

Instance Method Summary

Constructor Detail

def self.new(bot : Core::Bot, port : Int32 | Nil = nil, host : String = "0.0.0.0", secret_token : String | Nil = nil, ssl : Bool | Hash(Symbol, String) | Nil = nil) #

[View source]

Instance Method Detail

def bot : Telecr::Core::Bot #

[View source]
def host : String #

[View source]
def port : Int32 #

[View source]
def run(**webhook_options) #

[View source]
def running? : Bool #

[View source]
def secret_token : String #

[View source]
def set_webhook(**options) #

[View source]
def ssl_mode : Symbol #

[View source]
def stop #

[View source]