PHP Class TelegramBot\Api\Types\User

Inheritance: extends TelegramBot\Api\BaseType, implements TelegramBot\Api\TypeInterface
Show file Open project: TelegramBot/Api Class Usage Examples

Protected Properties

Property Type Description
$firstName string User‘s or bot’s first name
$id integer Unique identifier for this user or bot
$lastName string Optional. User‘s or bot’s last name
$map array
$requiredParams array
$username string Optional. User‘s or bot’s username

Public Methods

Method Description
getFirstName ( ) : string
getId ( ) : integer
getLastName ( ) : string
getUsername ( ) : string
setFirstName ( string $firstName )
setId ( integer $id )
setLastName ( string $lastName )
setUsername ( string $username )

Method Details

getFirstName() public method

public getFirstName ( ) : string
return string

getId() public method

public getId ( ) : integer
return integer

getLastName() public method

public getLastName ( ) : string
return string

getUsername() public method

public getUsername ( ) : string
return string

setFirstName() public method

public setFirstName ( string $firstName )
$firstName string

setId() public method

public setId ( integer $id )
$id integer

setLastName() public method

public setLastName ( string $lastName )
$lastName string

setUsername() public method

public setUsername ( string $username )
$username string

Property Details

$firstName protected property

User‘s or bot’s first name
protected string $firstName
return string

$id protected property

Unique identifier for this user or bot
protected int $id
return integer

$lastName protected property

Optional. User‘s or bot’s last name
protected string $lastName
return string

$map protected static property

protected static array $map
return array

$requiredParams protected static property

protected static array $requiredParams
return array

$username protected property

Optional. User‘s or bot’s username
protected string $username
return string