PHP Class TelegramBot\Api\Types\User

Inheritance: extends TelegramBot\Api\BaseType, implements TelegramBot\Api\TypeInterface
Mostra 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_oe property

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

$id protected_oe property

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

$lastName protected_oe property

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

$map protected_oe static_oe property

protected static array $map
return array

$requiredParams protected_oe static_oe property

protected static array $requiredParams
return array

$username protected_oe property

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