PHP Класс TelegramBot\Api\Types\Inline\ChosenInlineResult

Наследование: extends TelegramBot\Api\BaseType
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
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 )

Описание методов

getFrom() публичный Метод

public getFrom ( ) : User
Результат TelegramBot\Api\Types\User

getInlineMessageId() публичный Метод

public getInlineMessageId ( ) : string
Результат string

getLocation() публичный Метод

public getLocation ( ) : TelegramBot\Api\Types\Location
Результат TelegramBot\Api\Types\Location

getQuery() публичный Метод

public getQuery ( ) : string
Результат string

getResultId() публичный Метод

public getResultId ( ) : string
Результат string

setFrom() публичный Метод

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

setInlineMessageId() публичный Метод

public setInlineMessageId ( string $inlineMessageId )
$inlineMessageId string

setLocation() публичный Метод

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

setQuery() публичный Метод

public setQuery ( string $query )
$query string

setResultId() публичный Метод

public setResultId ( string $resultId )
$resultId string

Описание свойств

$from защищенное свойство

The user that chose the result.
protected User,TelegramBot\Api\Types $from
Результат TelegramBot\Api\Types\User

$inlineMessageId защищенное свойство

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
Результат string

$location защищенное свойство

Optional. Sender location, only for bots that require user location
protected Location,TelegramBot\Api\Types $location
Результат TelegramBot\Api\Types\Location

$map защищенное статическое свойство

protected static array $map
Результат array

$query защищенное свойство

The query that was used to obtain the result.
protected string $query
Результат string

$requiredParams защищенное статическое свойство

protected static array $requiredParams
Результат array

$resultId защищенное свойство

The unique identifier for the result that was chosen.
protected string $resultId
Результат string