ChosenInlineResult
class ChosenInlineResult
Represents a result of an inline query that was chosen by the user and sent to their chat partner.
Methods
No description
The unique identifier for the result that was chosen.
The query that was used to obtain the result.
Optional. Sender location, only for bots that require user location.
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
at line 29
string
getResultId()
The unique identifier for the result that was chosen.
at line 37
User
getFrom()
The user that chose the result.
at line 45
string
getQuery()
The query that was used to obtain the result.
at line 53
Location|null
getLocation()
Optional. Sender location, only for bots that require user location.
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.