class WebhookHandler (View source)

Class WebhookHandler

Methods

__construct(ReceiveMessageCollection $messages, Repository $config, Debug $debug)

WebhookHandler constructor.

$this
boot()

Boot to initialize process

handle()

Handle webhook

mixed
createBot($handler)

Create bot

Details

__construct(ReceiveMessageCollection $messages, Repository $config, Debug $debug)

WebhookHandler constructor.

Parameters

ReceiveMessageCollection $messages
Repository $config
Debug $debug

$this boot()

Boot to initialize process

Return Value

$this

handle()

Handle webhook

protected mixed createBot($handler)

Create bot

Parameters

$handler

Return Value

mixed