class ChosenInlineResult

Represents a result of an inline query that was chosen by the user and sent to their chat partner.

Methods

__construct(string $result_id, User $from, string $query, Location|null $location = null, string|null $inline_message_id = null)

No description

string
getResultId()

The unique identifier for the result that was chosen.

getFrom()

The user that chose the result.

string
getQuery()

The query that was used to obtain the result.

Location|null
getLocation()

Optional. Sender location, only for bots that require user location.

string|null
getInlineMessageId()

Optional. Identifier of the sent inline message. 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.

Details

at line 17
__construct(string $result_id, User $from, string $query, Location|null $location = null, string|null $inline_message_id = null)

No description

Parameters

string $result_id
User $from
string $query
Location|null $location
string|null $inline_message_id

at line 29
string getResultId()

The unique identifier for the result that was chosen.

Return Value

string

at line 37
User getFrom()

The user that chose the result.

Return Value

User

at line 45
string getQuery()

The query that was used to obtain the result.

Return Value

string

at line 53
Location|null getLocation()

Optional. Sender location, only for bots that require user location.

Return Value

Location|null

at line 61
string|null getInlineMessageId()

Optional. Identifier of the sent inline message. 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.

Return Value

string|null