PHP Class TelegramBot\Api\Types\Inline\InputMessageContent\Contact

See also: https://core.telegram.org/bots/api#inputcontactmessagecontent Represents the content of a contact message to be sent as the result of an inline query.
Inheritance: extends TelegramBot\Api\Types\Inline\InputMessageContent, implements TelegramBot\Api\TypeInterface
Afficher le fichier Open project: TelegramBot/Api

Protected Properties

Свойство Type Description
$firstName string Contact's first name
$lastName string Optional. Contact's last name
$map array
$phoneNumber string Contact's phone number
$requiredParams array

Méthodes publiques

Méthode Description
__construct ( string $phoneNumber, string $firstName, string | null $lastName = null ) Contact constructor.
getFirstName ( ) : mixed
getLastName ( ) : string
getPhoneNumber ( ) : string
setFirstName ( mixed $firstName )
setLastName ( string $lastName )
setPhoneNumber ( string $phoneNumber )

Method Details

__construct() public méthode

Contact constructor.
public __construct ( string $phoneNumber, string $firstName, string | null $lastName = null )
$phoneNumber string
$firstName string
$lastName string | null

getFirstName() public méthode

public getFirstName ( ) : mixed
Résultat mixed

getLastName() public méthode

public getLastName ( ) : string
Résultat string

getPhoneNumber() public méthode

public getPhoneNumber ( ) : string
Résultat string

setFirstName() public méthode

public setFirstName ( mixed $firstName )
$firstName mixed

setLastName() public méthode

public setLastName ( string $lastName )
$lastName string

setPhoneNumber() public méthode

public setPhoneNumber ( string $phoneNumber )
$phoneNumber string

Property Details

$firstName protected_oe property

Contact's first name
protected string $firstName
Résultat string

$lastName protected_oe property

Optional. Contact's last name
protected string $lastName
Résultat string

$map protected_oe static_oe property

protected static array $map
Résultat array

$phoneNumber protected_oe property

Contact's phone number
protected string $phoneNumber
Résultat string

$requiredParams protected_oe static_oe property

protected static array $requiredParams
Résultat array