PHP Class TelegramBot\Api\Types\Inline\ChosenInlineResult

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

Protected Properties

Property 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.

Public Methods

Method 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 method

public getFrom ( ) : User
return TelegramBot\Api\Types\User

getInlineMessageId() public method

public getInlineMessageId ( ) : string
return string

getLocation() public method

public getLocation ( ) : TelegramBot\Api\Types\Location
return TelegramBot\Api\Types\Location

getQuery() public method

public getQuery ( ) : string
return string

getResultId() public method

public getResultId ( ) : string
return string

setFrom() public method

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

setInlineMessageId() public method

public setInlineMessageId ( string $inlineMessageId )
$inlineMessageId string

setLocation() public method

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

setQuery() public method

public setQuery ( string $query )
$query string

setResultId() public method

public setResultId ( string $resultId )
$resultId string

Property Details

$from protected_oe property

The user that chose the result.
protected User,TelegramBot\Api\Types $from
return 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
return string

$location protected_oe property

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

$map protected_oe static_oe property

protected static array $map
return array

$query protected_oe property

The query that was used to obtain the result.
protected string $query
return string

$requiredParams protected_oe static_oe property

protected static array $requiredParams
return array

$resultId protected_oe property

The unique identifier for the result that was chosen.
protected string $resultId
return string