GramIO API Reference / @gramio/contexts/dist / ChosenInlineResult
Class: ChosenInlineResult
Defined in: contexts/index.d.ts:3976
Represents a result of an inline query that was chosen by the user and sent to their chat partner.
Extended by
Constructors
Constructor
new ChosenInlineResult(
payload):ChosenInlineResult
Defined in: contexts/index.d.ts:3978
Parameters
| Parameter | Type |
|---|---|
payload | TelegramChosenInlineResult |
Returns
ChosenInlineResult
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramChosenInlineResult | contexts/index.d.ts:3977 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:3980
Returns
string
from
Get Signature
get from():
User
Defined in: contexts/index.d.ts:3984
The user that chose the result
Returns
inlineMessageId
Get Signature
get inlineMessageId():
string
Defined in: contexts/index.d.ts:3994
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.
Returns
string
location
Get Signature
get location():
Location
Defined in: contexts/index.d.ts:3988
Sender location, only for bots that require user location
Returns
query
Get Signature
get query():
string
Defined in: contexts/index.d.ts:3996
The query that was used to obtain the result
Returns
string
resultId
Get Signature
get resultId():
string
Defined in: contexts/index.d.ts:3982
The unique identifier for the result that was chosen
Returns
string
senderId
Get Signature
get senderId():
number
Defined in: contexts/index.d.ts:3986
Sender ID
Returns
number