Property | Type | Description | |
---|---|---|---|
$from | 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. |
Method | Description | |
---|---|---|
getFrom ( ) : |
||
getInlineMessageId ( ) : string | ||
getLocation ( ) : TelegramBot\Api\Types\Location | ||
getQuery ( ) : string | ||
getResultId ( ) : string | ||
setFrom ( |
||
setInlineMessageId ( string $inlineMessageId ) | ||
setLocation ( TelegramBot\Api\Types\Location $location ) | ||
setQuery ( string $query ) | ||
setResultId ( string $resultId ) |
public getLocation ( ) : TelegramBot\Api\Types\Location | ||
return | TelegramBot\Api\Types\Location |
public setInlineMessageId ( string $inlineMessageId ) | ||
$inlineMessageId | string |
public setLocation ( TelegramBot\Api\Types\Location $location ) | ||
$location | TelegramBot\Api\Types\Location |
protected User,TelegramBot\Api\Types $from | ||
return |
protected string $inlineMessageId | ||
return | string |
protected Location,TelegramBot\Api\Types $location | ||
return | TelegramBot\Api\Types\Location |
protected string $query | ||
return | string |
protected string $resultId | ||
return | string |