bootdesk/chat-sdk

IncomingMessage
in package

Table of Contents

Properties

$attachments  : array<string|int, Attachment>
$payload  : array<string|int, mixed>|null
$recipient  : string
$sender  : string
$text  : string

Methods

__construct()  : mixed
addAttachment()  : self
fromBotManMessage()  : self
getAttachments()  : array<string|int, Attachment>
getAudio()  : array<string|int, mixed>
getFiles()  : array<string|int, mixed>
getImages()  : array<string|int, mixed>
getLocation()  : Location|null
getPayload()  : array<string|int, mixed>|null
getRecipient()  : string
getSender()  : string
getText()  : string
getVideos()  : array<string|int, mixed>

Properties

$payload read-only

private array<string|int, mixed>|null $payload = null

Methods

__construct()

public __construct(string $text, string $sender, string $recipient[, array<string|int, mixed>|null $payload = null ]) : mixed
Parameters
$text : string
$sender : string
$recipient : string
$payload : array<string|int, mixed>|null = null

getAudio()

public getAudio() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFiles()

public getFiles() : array<string|int, mixed>
Return values
array<string|int, mixed>

getImages()

public getImages() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPayload()

public getPayload() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getVideos()

public getVideos() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results