IncomingMessage
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>
$attachments
private
array<string|int, Attachment>
$attachments
= []
$payload
read-only
private
array<string|int, mixed>|null
$payload
= null
$recipient
read-only
private
string
$recipient
$sender
read-only
private
string
$sender
$text
read-only
private
string
$text
__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
-
addAttachment()
public
addAttachment(Attachment $attachment) : self
Parameters
-
$attachment
: Attachment
-
fromBotManMessage()
public
static fromBotManMessage(Message $message) : self
Parameters
-
$message
: Message
-
getAttachments()
public
getAttachments() : array<string|int, Attachment>
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>
getLocation()
public
getLocation() : Location|null
getPayload()
public
getPayload() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null
getRecipient()
public
getRecipient() : string
getSender()
public
getSender() : string
getText()
public
getText() : string
getVideos()
public
getVideos() : array<string|int, mixed>
Return values
array<string|int, mixed>