Protected
_clientProtected
_sourceThe date when the update happened.
The invite link used to join the chat.
The chat member after the update.
The chat member before the update.
The user who initiated 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 chat where the update happened.