Chat
class Chat extends BaseObject (View source)
Class Chat.
Methods
Property relations.
Get an item from the collection by key.
Unique identifier for this chat, not exceeding 1e13 by absolute value.
Type of chat, can be either 'private', 'group', 'supergroup' or 'channel'.
(Optional). Title, for channels and group chats.
(Optional). Username, for private chats and channels if available
(Optional). First name of the other party in a private chat
(Optional). Last name of the other party in a private chat
Details
in
BaseObject at line 17
__construct(
array|mixed $data)
Builds collection entity.
at line 21
array
relations()
Property relations.
in
BaseObject at line 39
mixed|BaseObject
get(
mixed $key,
mixed $default = null)
Get an item from the collection by key.
in
BaseObject at line 53
array|void
mapRelatives()
Map property relatives to appropriate objects.
in
BaseObject at line 83
array|mixed
getRawResponse()
Returns raw response.
in
BaseObject at line 95
mixed
getRawResult($data)
Returns raw result.
in
BaseObject at line 105
mixed
getStatus()
Get Status of request.
in
BaseObject at line 118
mixed
__call($name, $arguments)
Magic method to get properties dynamically.
at line 16
int
getId()
Unique identifier for this chat, not exceeding 1e13 by absolute value.
at line 16
string
getType()
Type of chat, can be either 'private', 'group', 'supergroup' or 'channel'.
at line 16
string
getTitle()
(Optional). Title, for channels and group chats.
at line 16
string
getUsername()
(Optional). Username, for private chats and channels if available
at line 16
string
getFirstName()
(Optional). First name of the other party in a private chat
at line 16
string
getLastName()
(Optional). Last name of the other party in a private chat