Private
#detailedProtected
_clientProtected
_sourceWhether the chat is a forum.
The title of the chat, or its username, or the concatenation of its first_name and last_name.
The type of the chat.
Calls the createChatInviteLink method of the api object to create a new invite link for the chat.
Optional
params: Partial<ICreateChatInviteLinkParams>Optional parameters for creating the invite link.
A Promise that resolves to the new invite link.
Calls the setChatPhoto method of the api object to set the chat photo.
The photo to set, represented as a URL or Buffer object.
A Promise that resolves to true if the photo was successfully set.
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 ID of the chat.