PHP Class TelegramBot\Api\Types\Chat

Inheritance: extends TelegramBot\Api\BaseType, implements TelegramBot\Api\TypeInterface
Mostra file Open project: TelegramBot/Api

Protected Properties

Property Type Description
$firstName string Optional. First name of the other party in a private chat
$id integer Unique identifier for this chat, not exceeding 1e13 by absolute value
$lastName string Optional. Last name of the other party in a private chat
$map array
$requiredParams array
$title string Optional. Title, for channels and group chats
$type string Type of chat, can be either “private”, “group”, “supergroup” or “channel”
$username string Optional. Username, for private chats and channels if available

Public Methods

Method Description
getFirstName ( ) : string
getId ( ) : integer
getLastName ( ) : string
getTitle ( ) : string
getType ( ) : string
getUsername ( ) : string
setFirstName ( string $firstName )
setId ( integer $id )
setLastName ( string $lastName )
setTitle ( string $title )
setType ( string $type )
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

getTitle() public method

public getTitle ( ) : string
return string

getType() public method

public getType ( ) : 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

setTitle() public method

public setTitle ( string $title )
$title string

setType() public method

public setType ( string $type )
$type string

setUsername() public method

public setUsername ( string $username )
$username string

Property Details

$firstName protected_oe property

Optional. First name of the other party in a private chat
protected string $firstName
return string

$id protected_oe property

Unique identifier for this chat, not exceeding 1e13 by absolute value
protected int $id
return integer

$lastName protected_oe property

Optional. Last name of the other party in a private chat
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

$title protected_oe property

Optional. Title, for channels and group chats
protected string $title
return string

$type protected_oe property

Type of chat, can be either “private”, “group”, “supergroup” or “channel”
protected string $type
return string

$username protected_oe property

Optional. Username, for private chats and channels if available
protected string $username
return string