Protected
_clientProtected
_sourceThe date and time at which the message was forwarded, if available.
The user who sent the forwarded message, if available.
The ID of the message that was forwarded.
The sender's name of the forwarded message, if available.
The signature of the forwarded message, if available.
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 from which the forwarded message was sent, if available.