Protected
_clientProtected
_sourceThe context for the channel post in the update, if there is one.
The context for the chat join request in the update, if there is one.
The context for the chat member in the update, if there is one.
The context for the chosen inline result in the update, if there is one.
The context for the edited channel post in the update, if there is one.
The context for the edited message in the update, if there is one.
The context for the inline query in the update, if there is one.
The context for the message in the update, if there is one.
The context for the my chat member in the update, if there is one.
The name of the type of the update, if it can be determined from the update object.
The context for the poll in the update, if there is one.
The context for the poll answer in the update, if there is one.
The context for the pre checkout query in the update, if there is one.
The context for the shipping query in the update, if there is one.
The identifier of the update.
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
The context for the callback query in the update, if there is one.