PostbackHandler
abstract class PostbackHandler extends BaseHandler (View source)
Class PostbackHandler
Properties
protected Bot | $bot | from BaseHandler | |
protected string | $payload |
Methods
mixed
getPayload()
Get payload
Details
in BaseHandler at line 33
$this
createBot($token, $secret = null)
Create bot to send API
in BaseHandler at line 45
$this
debug($debug)
in BaseHandler at line 60
HandleMessageResponse|array
send(Message $message)
Send message to api
in BaseHandler at line 80
abstract mixed
handle(ReceiveMessage $message)
Handle the chatbot message
at line 26
mixed
getPayload()
Get payload