Protected
_clientProtected
_sourceThe creator of the chat if the status of the chat member is "creator".
The banned chat member if the status of the chat member is "kicked".
The member of the chat if the status of the chat member is "member".
The restricted chat member if the status of the chat member is "restricted".
The user of the chat member.
The status of the chat member, which can be any of the following: creator, administrator, member, restricted, left or kicked.
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 administrator of the chat if the status of the chat member is "administrator".