Chat Class extends Base Represents a chat Properties clientfirstNameidisForumlastNametitletypeusername Methods approveJoinRequestbanMemberbanSenderChatcloseForumTopiccloseGeneralForumTopiccreateForumTopiccreateInviteLinkdeclineJoinRequestdeleteForumTopicdeleteMyCommandsdeletePhotodeleteStickerSeteditForumTopiceditGeneralForumTopiceditInviteLinkexportInviteLinkgetAdministratorsgetMembergetMemberCountgetMenuButtongetMyCommandshideGeneralForumTopicleavepinMessagepromoteMemberreopenForumTopicreopenGeneralForumTopicrestrictMemberrevokeInviteLinksendAnimationsendAudiosendChatActionsendContactsendDicesendDocumentsendInvoicesendLocationsendMediaGroupsendMessagesendPhotosendPollsendStickersendVenuesendVideosendVideoNotesendVoicesetAdministratorCustomTitlesetDescriptionsetMenuButtonsetMyCommandssetPermissionssetPhotosetStickerSetsetTitleunbanMemberunbanSenderChatunhideGeneralForumTopicunpinAllForumTopicMessagesunpinAllMessagesunpinMessage Properties client Client See the codefirstName string First name of the other party in a private chat See the codeid number Unique identifier for this chat See the codeisForum boolean *true*, if the supergroup chat is a forum (has topics enabled) See the codelastName string Last name of the other party in a private chat See the codetitle string Title, for supergroups, channels and group chats See the codetype ChatType Type of chat See the codeusername string Username, for private chats, supergroups and channels if available See the code Methods approveJoinRequest(userId: number): Promise See the codebanMember(userId: number, options: ChatMemberBanOptions): Promise See the codebanSenderChat(senderChatId: number): Promise See the codecloseForumTopic(forumTopicId: number): Promise See the codecloseGeneralForumTopic(): Promise See the codecreateForumTopic(name: string, options: ForumTopicCreateOptions): Promise See the codecreateInviteLink(options: ChatInviteLinkCreateOptions): Promise See the codedeclineJoinRequest(userId: number): Promise See the codedeleteForumTopic(forumTopicId: number): Promise See the codedeleteMyCommands(options: Omit): Promise See the codedeletePhoto(): Promise See the codedeleteStickerSet(): Promise See the codeeditForumTopic(forumTopicId: number, options: ForumTopicEditOptions): Promise See the codeeditGeneralForumTopic(options: GeneralForumTopicEditOptions): Promise See the codeeditInviteLink(inviteLink: string, options: ChatInviteLinkEditOptions): Promise See the codeexportInviteLink(): Promise See the codegetAdministrators(): Promise See the codegetMember(userId: number): Promise See the codegetMemberCount(): Promise See the codegetMenuButton(): Promise See the codegetMyCommands(options: Omit): Promise See the codehideGeneralForumTopic(): Promise See the codeleave(): Promise See the codepinMessage(messageId: number, options: ChatMessagePinOptions): Promise See the codepromoteMember(userId: number, options: ChatMemberPromoteOptions): Promise See the codereopenForumTopic(forumTopicId: number): Promise See the codereopenGeneralForumTopic(): Promise See the coderestrictMember(userId: number, permissions: ChatPermissions, options: ChatMemberRestrictOptions): Promise See the coderevokeInviteLink(inviteLink: string): Promise See the codesendAnimation(animation: string, options: AnimationMessageSendOptions): Promise See the codesendAudio(audio: string, options: AudioMessageSendOptions): Promise See the codesendChatAction(action: ChatAction): Promise See the codesendContact(contact: ContactOptions, options: ContactMessageSendOptions): Promise See the codesendDice(emoji: DiceEmoji, options: DiceMessageSendOptions): Promise See the codesendDocument(document: string, options: DocumentMessageSendOptions): Promise See the codesendInvoice(options: InvoiceSendOptions): Promise See the codesendLocation(latitude: number, longitude: number, options: LocationMessageSendOptions): Promise See the codesendMediaGroup(media: undefined, options: MediaGroupMessageSendOptions): Promise See the codesendMessage(text: string, options: TextMessageSendOptions): Promise See the codesendPhoto(photo: string, options: PhotoMessageSendOptions): Promise See the codesendPoll(poll: PollOptions, options: PollMessageSendOptions): Promise See the codesendSticker(sticker: string, options: StickerSendOptions): Promise See the codesendVenue(venue: VenueOptions, options: VenueMessageSendOptions): Promise See the codesendVideo(video: string, options: VideoMessageSendOptions): Promise See the codesendVideoNote(videoNote: string, options: AudioMessageSendOptions): Promise See the codesendVoice(voice: string, options: AudioMessageSendOptions): Promise See the codesetAdministratorCustomTitle(userId: number, customTitle: string): Promise See the codesetDescription(description: string): Promise See the codesetMenuButton(menuButton: MenuButton): Promise See the codesetMyCommands(commands: undefined, options: Omit): Promise See the codesetPermissions(permissions: ChatPermissions): Promise See the codesetPhoto(photo: string): Promise See the codesetStickerSet(stickerSetName: string): Promise See the codesetTitle(title: string): Promise See the codeunbanMember(userId: number, options: ChatMemberUnbanOptions): Promise See the codeunbanSenderChat(senderChatId: number): Promise See the codeunhideGeneralForumTopic(): Promise See the codeunpinAllForumTopicMessages(forumTopicId: number): Promise See the codeunpinAllMessages(): Promise See the codeunpinMessage(messageId: number): Promise See the code