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

Inheritance: extends AbstractInlineQueryResult
Show file Open project: TelegramBot/Api

Protected Properties

Property 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
$thumbHeight integer Optional. Thumbnail height
$thumbUrl string Optional. Url of the thumbnail for the result
$thumbWidth integer Optional. Thumbnail width
$type string

Public Methods

Method Description
__construct ( string $id, string $phoneNumber, string $firstName, string $lastName = null, string $thumbUrl = null, integer $thumbWidth = null, integer $thumbHeight = null, TelegramBot\Api\Types\Inline\InputMessageContent | null $inputMessageContent = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null ) Contact constructor.
getFirstName ( ) : string
getLastName ( ) : string
getPhoneNumber ( ) : string
getThumbHeight ( ) : integer
getThumbUrl ( ) : string
getThumbWidth ( ) : integer
setFirstName ( string $firstName )
setLastName ( string $lastName )
setPhoneNumber ( string $phoneNumber )
setThumbHeight ( integer $thumbHeight )
setThumbUrl ( string $thumbUrl )
setThumbWidth ( integer $thumbWidth )

Method Details

__construct() public method

Contact constructor.
public __construct ( string $id, string $phoneNumber, string $firstName, string $lastName = null, string $thumbUrl = null, integer $thumbWidth = null, integer $thumbHeight = null, TelegramBot\Api\Types\Inline\InputMessageContent | null $inputMessageContent = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null )
$id string
$phoneNumber string
$firstName string
$lastName string
$thumbUrl string
$thumbWidth integer
$thumbHeight integer
$inputMessageContent TelegramBot\Api\Types\Inline\InputMessageContent | null
$inlineKeyboardMarkup TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null

getFirstName() public method

public getFirstName ( ) : string
return string

getLastName() public method

public getLastName ( ) : string
return string

getPhoneNumber() public method

public getPhoneNumber ( ) : string
return string

getThumbHeight() public method

public getThumbHeight ( ) : integer
return integer

getThumbUrl() public method

public getThumbUrl ( ) : string
return string

getThumbWidth() public method

public getThumbWidth ( ) : integer
return integer

setFirstName() public method

public setFirstName ( string $firstName )
$firstName string

setLastName() public method

public setLastName ( string $lastName )
$lastName string

setPhoneNumber() public method

public setPhoneNumber ( string $phoneNumber )
$phoneNumber string

setThumbHeight() public method

public setThumbHeight ( integer $thumbHeight )
$thumbHeight integer

setThumbUrl() public method

public setThumbUrl ( string $thumbUrl )
$thumbUrl string

setThumbWidth() public method

public setThumbWidth ( integer $thumbWidth )
$thumbWidth integer

Property Details

$firstName protected property

Contact's first name
protected string $firstName
return string

$lastName protected property

Optional. Contact's last name
protected string $lastName
return string

$map protected static property

protected static array $map
return array

$phoneNumber protected property

Contact's phone number
protected string $phoneNumber
return string

$requiredParams protected static property

protected static array $requiredParams
return array

$thumbHeight protected property

Optional. Thumbnail height
protected int $thumbHeight
return integer

$thumbUrl protected property

Optional. Url of the thumbnail for the result
protected string $thumbUrl
return string

$thumbWidth protected property

Optional. Thumbnail width
protected int $thumbWidth
return integer

$type protected property

protected string $type
return string