Contact
class Contact extends BaseObject (View source)
Class Contact
Methods
array
relations()
No description
mixed|BaseObject
get(
mixed $key,
mixed $default = null)
Get an item from the collection by key.
from
BaseObject
string
getPhoneNumber()
Contact's phone number.
string
getFirstName()
Contact's first name.
string
getLastName()
(Optional). Contact's last name.
int
getUserId()
(Optional). Contact's user identifier in Telegram.
Details
in
BaseObject at line 19
__construct(
array|mixed $data)
Builds collection entity.
at line 20
array
relations()
in
BaseObject at line 41
mixed|BaseObject
get(
mixed $key,
mixed $default = null)
Get an item from the collection by key.
in
BaseObject at line 55
array|void
mapRelatives()
Map property relatives to appropriate objects.
in
BaseObject at line 80
array|mixed
getRawResponse()
Returns raw response.
in
BaseObject at line 92
mixed
getRawResult($data)
Returns raw result.
in
BaseObject at line 102
mixed
getStatus()
Get Status of request.
in
BaseObject at line 116
mixed
__call($name, $arguments)
Magic method to get properties dynamically.
at line 15
string
getPhoneNumber()
Contact's phone number.
at line 15
string
getFirstName()
Contact's first name.
at line 15
string
getLastName()
(Optional). Contact's last name.
at line 15
int
getUserId()
(Optional). Contact's user identifier in Telegram.