PHP Class TelegramBot\Api\Types\Inline\ChosenInlineResult

Inheritance: extends TelegramBot\Api\BaseType
Afficher le fichier Open project: TelegramBot/Api

Protected Properties

Свойство Type Description
$from TelegramBot\Api\Types\User The user that chose the result.
$inlineMessageId string Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.
$location TelegramBot\Api\Types\Location Optional. Sender location, only for bots that require user location
$map array
$query string The query that was used to obtain the result.
$requiredParams array
$resultId string The unique identifier for the result that was chosen.

Méthodes publiques

Méthode Description
getFrom ( ) : User
getInlineMessageId ( ) : string
getLocation ( ) : TelegramBot\Api\Types\Location
getQuery ( ) : string
getResultId ( ) : string
setFrom ( User $from )
setInlineMessageId ( string $inlineMessageId )
setLocation ( TelegramBot\Api\Types\Location $location )
setQuery ( string $query )
setResultId ( string $resultId )

Method Details

getFrom() public méthode

public getFrom ( ) : User
Résultat TelegramBot\Api\Types\User

getInlineMessageId() public méthode

public getInlineMessageId ( ) : string
Résultat string

getLocation() public méthode

public getLocation ( ) : TelegramBot\Api\Types\Location
Résultat TelegramBot\Api\Types\Location

getQuery() public méthode

public getQuery ( ) : string
Résultat string

getResultId() public méthode

public getResultId ( ) : string
Résultat string

setFrom() public méthode

public setFrom ( User $from )
$from TelegramBot\Api\Types\User

setInlineMessageId() public méthode

public setInlineMessageId ( string $inlineMessageId )
$inlineMessageId string

setLocation() public méthode

public setLocation ( TelegramBot\Api\Types\Location $location )
$location TelegramBot\Api\Types\Location

setQuery() public méthode

public setQuery ( string $query )
$query string

setResultId() public méthode

public setResultId ( string $resultId )
$resultId string

Property Details

$from protected_oe property

The user that chose the result.
protected User,TelegramBot\Api\Types $from
Résultat TelegramBot\Api\Types\User

$inlineMessageId protected_oe property

Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.
protected string $inlineMessageId
Résultat string

$location protected_oe property

Optional. Sender location, only for bots that require user location
protected Location,TelegramBot\Api\Types $location
Résultat TelegramBot\Api\Types\Location

$map protected_oe static_oe property

protected static array $map
Résultat array

$query protected_oe property

The query that was used to obtain the result.
protected string $query
Résultat string

$requiredParams protected_oe static_oe property

protected static array $requiredParams
Résultat array

$resultId protected_oe property

The unique identifier for the result that was chosen.
protected string $resultId
Résultat string