Protected
_clientProtected
_sourceThe user who chose the inline result.
The unique identifier for the result that was chosen
Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message.
The query that was used to obtain the result
Internal implementation of the answer method
Error if inline_message_id is undefined.
Optional
params: Partial<IAnswerInlineQueryParams>Converts the source object to a context object of a given type.
client.updates.on("message", message => {
const user = message.user.toContext<CustomUserContext>();
// Now user works correctly with your context
})
Generic type parameter for the context object.
The context object.
Generated using TypeDoc
Sender location, only for bots that require user location