class Typing extends Message (View source)

Class Typing

Constants

TYPE_ON

Typing on type

TYPE_OFF

Typing off type

TYPE_SEEN

Mark seen type

Methods

__construct($sender, string $type = self::TYPE_ON)

Typing constructor.

mixed
getSender()

Get sender id

from Message
array
toData()

To array for send api

Details

__construct($sender, string $type = self::TYPE_ON)

Typing constructor.

Parameters

$sender
string $type

mixed getSender()

Get sender id

Return Value

mixed

array toData()

To array for send api

Return Value

array