class NewMessageEvent extends Event

Event thrown each time a new message is sent or a conversation is created

Methods

__construct(Message $message, bool $first)

Create a new event

getMessage()

Get the new message

bool
isFirst()

Find out if the message is the first in its Conversation

Details

at line line 31
__construct(Message $message, bool $first)

Create a new event

Parameters

Message $message The new message
bool $first Whether the message is the first in its discussion

at line line 41
Message getMessage()

Get the new message

Return Value

Message

at line line 50
bool isFirst()

Find out if the message is the first in its Conversation

Return Value

bool