Private
#detailedProtected
_clientProtected
_sourceThe chat's permissions object.
The chat's pinned message object.
An array of usernames of the chat's currently active users.
Whether the user can set a sticker set for the chat.
The custom emoji status of the chat.
The description or bio of the chat.
Whether aggressive anti-spam measures are enabled in the chat.
Whether the chat has hidden members.
Whether the chat has private forwards enabled.
Whether the chat has protected content.
Whether the chat has restricted voice and video messages enabled.
The ID of the chat.
The invite link of the chat.
Whether the chat is a forum.
Whether users can join the chat by request.
Whether users need to be invited to the chat to send messages.
The ID of the linked chat (for channels only).
The time in seconds after which messages are automatically deleted.
The delay for slow mode in the chat.
The name of the sticker set used in the chat.
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 chat's location object.