Skip to content

GramIO API Reference / @gramio/contexts/dist / ChosenInlineResult

Class: ChosenInlineResult ​

Defined in: contexts/index.d.ts:4437

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:4439

Parameters ​

ParameterType
payloadTelegramChosenInlineResult

Returns ​

ChosenInlineResult

Properties ​

PropertyTypeDefined in
payloadTelegramChosenInlineResultcontexts/index.d.ts:4438

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

Defined in: contexts/index.d.ts:4441

MDN

Returns ​

string


from ​

Get Signature ​

get from(): User

Defined in: contexts/index.d.ts:4445

The user that chose the result

Returns ​

User


inlineMessageId ​

Get Signature ​

get inlineMessageId(): string

Defined in: contexts/index.d.ts:4455

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:4449

Sender location, only for bots that require user location

Returns ​

Location


query ​

Get Signature ​

get query(): string

Defined in: contexts/index.d.ts:4457

The query that was used to obtain the result

Returns ​

string


resultId ​

Get Signature ​

get resultId(): string

Defined in: contexts/index.d.ts:4443

The unique identifier for the result that was chosen

Returns ​

string


senderId ​

Get Signature ​

get senderId(): number

Defined in: contexts/index.d.ts:4447

Sender ID

Returns ​

number