Chat Class
extends BaseRepresents a chat
Properties
client: Client
firstName: string
id: number
isForum: boolean
lastName: string
title: string
type: ChatType
username: string
Methods
approveJoinRequest(userId: number)
banMember(userId: number, options?: ChatMemberBanOptions)
banSenderChat(senderChatId: number)
closeForumTopic(forumTopicId: number)
closeGeneralForumTopic()
createForumTopic(name: string, options: ForumTopicCreateOptions)
createInviteLink(options?: ChatInviteLinkCreateOptions)
declineJoinRequest(userId: number)
deleteForumTopic(forumTopicId: number)
deleteMyCommands(options?: Omit)
deletePhoto()
deleteStickerSet()
editForumTopic(forumTopicId: number, options: ForumTopicEditOptions)
editGeneralForumTopic(options: GeneralForumTopicEditOptions)
editInviteLink(inviteLink: string, options?: ChatInviteLinkEditOptions)
exportInviteLink()
getAdministrators()
getMember(userId: number)
getMemberCount()
getMenuButton()
getMyCommands(options?: Omit)
hideGeneralForumTopic()
leave()
pinMessage(messageId: number, options?: ChatMessagePinOptions)
promoteMember(userId: number, options?: ChatMemberPromoteOptions)
reopenForumTopic(forumTopicId: number)
reopenGeneralForumTopic()
restrictMember(userId: number, permissions: ChatPermissions, options?: ChatMemberRestrictOptions)
revokeInviteLink(inviteLink: string)
sendAnimation(animation: string, options?: AnimationMessageSendOptions)
sendAudio(audio: string, options?: AudioMessageSendOptions)
sendChatAction(action: ChatAction)
sendContact(contact: ContactOptions, options?: ContactMessageSendOptions)
sendDice(emoji: DiceEmoji, options?: DiceMessageSendOptions)
sendDocument(document: string, options?: DocumentMessageSendOptions)
sendInvoice(options: InvoiceSendOptions)
sendLocation(latitude: number, longitude: number, options?: LocationMessageSendOptions)
sendMediaGroup(media: undefined, options?: MediaGroupMessageSendOptions)
sendMessage(text: string, options?: TextMessageSendOptions)
sendPhoto(photo: string, options?: PhotoMessageSendOptions)
sendPoll(poll: PollOptions, options?: PollMessageSendOptions)
sendSticker(sticker: string, options?: StickerSendOptions)
sendVenue(venue: VenueOptions, options?: VenueMessageSendOptions)
sendVideo(video: string, options?: VideoMessageSendOptions)
sendVideoNote(videoNote: string, options?: AudioMessageSendOptions)
sendVoice(voice: string, options?: AudioMessageSendOptions)
setAdministratorCustomTitle(userId: number, customTitle: string)
setDescription(description: string)
setMenuButton(menuButton: MenuButton)
setMyCommands(commands: undefined, options?: Omit)
setPermissions(permissions: ChatPermissions)
setPhoto(photo: string)
setStickerSet(stickerSetName: string)
setTitle(title: string)
unbanMember(userId: number, options?: ChatMemberUnbanOptions)
unbanSenderChat(senderChatId: number)
unhideGeneralForumTopic()
unpinAllForumTopicMessages(forumTopicId: number)
unpinAllMessages()
unpinMessage(messageId?: number)
{ "id": 689, "name": "Chat", "variant": "declaration", "kind": 128, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Represents a chat" } ] }, "children": [ { "id": 690, "name": "constructor", "variant": "declaration", "kind": 512, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 70, "character": 1 } ], "signatures": [ { "id": 691, "name": "new Chat", "variant": "signature", "kind": 16384, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 70, "character": 1 } ], "parameters": [ { "id": 692, "name": "client", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 1, "name": "Client", "package": "tgkit", "qualifiedName": "default" } }, { "id": 693, "name": "data", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "reference", "target": 689, "name": "Chat", "package": "tgkit", "qualifiedName": "default" }, "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } } ], "overwrites": { "type": "reference", "target": -1, "name": "Base.constructor" } }, { "id": 896, "name": "client", "variant": "declaration", "kind": 1024, "flags": { "isInherited": true }, "sources": [ { "fileName": "packages/tgkit/src/structures/Base.ts", "line": 4, "character": 1 } ], "type": { "type": "reference", "target": 1, "name": "Client", "package": "tgkit", "qualifiedName": "default" }, "inheritedFrom": { "type": "reference", "target": -1, "name": "Base.client" } }, { "id": 698, "name": "firstName", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "First name of the other party in a private chat" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 62, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 694, "name": "id", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Unique identifier for this chat" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 50, "character": 1 } ], "type": { "type": "intrinsic", "name": "number" } }, { "id": 700, "name": "isForum", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "*true*, if the supergroup chat is a forum (has topics enabled)" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 68, "character": 1 } ], "type": { "type": "intrinsic", "name": "boolean" } }, { "id": 699, "name": "lastName", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "Last name of the other party in a private chat" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 65, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 696, "name": "title", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "Title, for supergroups, channels and group chats" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 56, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 695, "name": "type", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Type of chat" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 53, "character": 1 } ], "type": { "type": "reference", "target": 2086, "name": "ChatType", "package": "tgkit" } }, { "id": 697, "name": "username", "variant": "declaration", "kind": 1024, "flags": { "isOptional": true }, "comment": { "summary": [ { "kind": "text", "text": "Username, for private chats, supergroups and channels if available" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 59, "character": 1 } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 810, "name": "approveJoinRequest", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 198, "character": 7 } ], "signatures": [ { "id": 811, "name": "approveJoinRequest", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 198, "character": 7 } ], "parameters": [ { "id": 812, "name": "userId", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 768, "name": "banMember", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 150, "character": 7 } ], "signatures": [ { "id": 769, "name": "banMember", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 150, "character": 7 } ], "parameters": [ { "id": 770, "name": "userId", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } }, { "id": 771, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2397, "name": "ChatMemberBanOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 789, "name": "banSenderChat", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 170, "character": 7 } ], "signatures": [ { "id": 790, "name": "banSenderChat", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 170, "character": 7 } ], "parameters": [ { "id": 791, "name": "senderChatId", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 858, "name": "closeForumTopic", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 266, "character": 7 } ], "signatures": [ { "id": 859, "name": "closeForumTopic", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 266, "character": 7 } ], "parameters": [ { "id": 860, "name": "forumTopicId", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 873, "name": "closeGeneralForumTopic", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 286, "character": 7 } ], "signatures": [ { "id": 874, "name": "closeGeneralForumTopic", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 286, "character": 7 } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 850, "name": "createForumTopic", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 258, "character": 7 } ], "signatures": [ { "id": 851, "name": "createForumTopic", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 258, "character": 7 } ], "parameters": [ { "id": 852, "name": "name", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } }, { "id": 853, "name": "options", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 2568, "name": "ForumTopicCreateOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1295, "name": "ForumTopic", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 800, "name": "createInviteLink", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 186, "character": 7 } ], "signatures": [ { "id": 801, "name": "createInviteLink", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 186, "character": 7 } ], "parameters": [ { "id": 802, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2417, "name": "ChatInviteLinkCreateOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1142, "name": "ChatInviteLink", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 813, "name": "declineJoinRequest", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 202, "character": 7 } ], "signatures": [ { "id": 814, "name": "declineJoinRequest", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 202, "character": 7 } ], "parameters": [ { "id": 815, "name": "userId", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 864, "name": "deleteForumTopic", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 274, "character": 7 } ], "signatures": [ { "id": 865, "name": "deleteForumTopic", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 274, "character": 7 } ], "parameters": [ { "id": 866, "name": "forumTopicId", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 885, "name": "deleteMyCommands", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 312, "character": 7 } ], "signatures": [ { "id": 886, "name": "deleteMyCommands", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 312, "character": 7 } ], "parameters": [ { "id": 887, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Omit" }, "typeArguments": [ { "type": "reference", "target": 2432, "name": "MyCommandsDeleteOptions", "package": "tgkit" }, { "type": "literal", "value": "scope" } ], "name": "Omit", "package": "typescript" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 819, "name": "deletePhoto", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 210, "character": 7 } ], "signatures": [ { "id": 820, "name": "deletePhoto", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 210, "character": 7 } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 848, "name": "deleteStickerSet", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 254, "character": 7 } ], "signatures": [ { "id": 849, "name": "deleteStickerSet", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 254, "character": 7 } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 854, "name": "editForumTopic", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 262, "character": 7 } ], "signatures": [ { "id": 855, "name": "editForumTopic", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 262, "character": 7 } ], "parameters": [ { "id": 856, "name": "forumTopicId", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } }, { "id": 857, "name": "options", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 2571, "name": "ForumTopicEditOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 870, "name": "editGeneralForumTopic", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 282, "character": 7 } ], "signatures": [ { "id": 871, "name": "editGeneralForumTopic", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 282, "character": 7 } ], "parameters": [ { "id": 872, "name": "options", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 2574, "name": "GeneralForumTopicEditOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 803, "name": "editInviteLink", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 190, "character": 7 } ], "signatures": [ { "id": 804, "name": "editInviteLink", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 190, "character": 7 } ], "parameters": [ { "id": 805, "name": "inviteLink", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } }, { "id": 806, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2422, "name": "ChatInviteLinkEditOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1142, "name": "ChatInviteLink", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 798, "name": "exportInviteLink", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 182, "character": 7 } ], "signatures": [ { "id": 799, "name": "exportInviteLink", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 182, "character": 7 } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 838, "name": "getAdministrators", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 238, "character": 7 } ], "signatures": [ { "id": 839, "name": "getAdministrators", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 238, "character": 7 } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "any" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 842, "name": "getMember", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 246, "character": 7 } ], "signatures": [ { "id": 843, "name": "getMember", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 246, "character": 7 } ], "parameters": [ { "id": 844, "name": "userId", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1157, "name": "ChatMember", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 840, "name": "getMemberCount", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 242, "character": 7 } ], "signatures": [ { "id": 841, "name": "getMemberCount", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 242, "character": 7 } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "number" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 894, "name": "getMenuButton", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 338, "character": 7 } ], "signatures": [ { "id": 895, "name": "getMenuButton", "variant": "signature", "kind": 4096, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Get the current value of the bot's menu button in this chat" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 338, "character": 7 } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1467, "name": "MenuButton", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 888, "name": "getMyCommands", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 322, "character": 7 } ], "signatures": [ { "id": 889, "name": "getMyCommands", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 322, "character": 7 } ], "parameters": [ { "id": 890, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Omit" }, "typeArguments": [ { "type": "reference", "target": 2435, "name": "MyCommandsGetOptions", "package": "tgkit" }, { "type": "literal", "value": "scope" } ], "name": "Omit", "package": "typescript" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "any" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 877, "name": "hideGeneralForumTopic", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 294, "character": 7 } ], "signatures": [ { "id": 878, "name": "hideGeneralForumTopic", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 294, "character": 7 } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 836, "name": "leave", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 234, "character": 7 } ], "signatures": [ { "id": 837, "name": "leave", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 234, "character": 7 } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 827, "name": "pinMessage", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 222, "character": 7 } ], "signatures": [ { "id": 828, "name": "pinMessage", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 222, "character": 7 } ], "parameters": [ { "id": 829, "name": "messageId", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } }, { "id": 830, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2427, "name": "ChatMessagePinOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 781, "name": "promoteMember", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 162, "character": 7 } ], "signatures": [ { "id": 782, "name": "promoteMember", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 162, "character": 7 } ], "parameters": [ { "id": 783, "name": "userId", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } }, { "id": 784, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2404, "name": "ChatMemberPromoteOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 861, "name": "reopenForumTopic", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 270, "character": 7 } ], "signatures": [ { "id": 862, "name": "reopenForumTopic", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 270, "character": 7 } ], "parameters": [ { "id": 863, "name": "forumTopicId", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 875, "name": "reopenGeneralForumTopic", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 290, "character": 7 } ], "signatures": [ { "id": 876, "name": "reopenGeneralForumTopic", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 290, "character": 7 } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 776, "name": "restrictMember", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 158, "character": 7 } ], "signatures": [ { "id": 777, "name": "restrictMember", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 158, "character": 7 } ], "parameters": [ { "id": 778, "name": "userId", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } }, { "id": 779, "name": "permissions", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 2118, "name": "ChatPermissions", "package": "tgkit" } }, { "id": 780, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2402, "name": "ChatMemberRestrictOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 807, "name": "revokeInviteLink", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 194, "character": 7 } ], "signatures": [ { "id": 808, "name": "revokeInviteLink", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 194, "character": 7 } ], "parameters": [ { "id": 809, "name": "inviteLink", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1142, "name": "ChatInviteLink", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 721, "name": "sendAnimation", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 102, "character": 7 } ], "signatures": [ { "id": 722, "name": "sendAnimation", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 102, "character": 7 } ], "parameters": [ { "id": 723, "name": "animation", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } }, { "id": 724, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2198, "name": "AnimationMessageSendOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1495, "name": "Message", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 709, "name": "sendAudio", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 90, "character": 7 } ], "signatures": [ { "id": 710, "name": "sendAudio", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 90, "character": 7 } ], "parameters": [ { "id": 711, "name": "audio", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } }, { "id": 712, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2152, "name": "AudioMessageSendOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1495, "name": "Message", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 762, "name": "sendChatAction", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 142, "character": 7 } ], "signatures": [ { "id": 763, "name": "sendChatAction", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 142, "character": 7 } ], "parameters": [ { "id": 764, "name": "action", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 2016, "name": "ChatAction", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 746, "name": "sendContact", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 126, "character": 7 } ], "signatures": [ { "id": 747, "name": "sendContact", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 126, "character": 7 } ], "parameters": [ { "id": 748, "name": "contact", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 2264, "name": "ContactOptions", "package": "tgkit" } }, { "id": 749, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2269, "name": "ContactMessageSendOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1495, "name": "Message", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 754, "name": "sendDice", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 134, "character": 7 } ], "signatures": [ { "id": 755, "name": "sendDice", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 134, "character": 7 } ], "parameters": [ { "id": 756, "name": "emoji", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 2091, "name": "DiceEmoji", "package": "tgkit" } }, { "id": 757, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2299, "name": "DiceMessageSendOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1495, "name": "Message", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 713, "name": "sendDocument", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 94, "character": 7 } ], "signatures": [ { "id": 714, "name": "sendDocument", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 94, "character": 7 } ], "parameters": [ { "id": 715, "name": "document", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } }, { "id": 716, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2168, "name": "DocumentMessageSendOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1495, "name": "Message", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 765, "name": "sendInvoice", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 146, "character": 7 } ], "signatures": [ { "id": 766, "name": "sendInvoice", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 146, "character": 7 } ], "parameters": [ { "id": 767, "name": "options", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 2495, "name": "InvoiceSendOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1495, "name": "Message", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 737, "name": "sendLocation", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 118, "character": 7 } ], "signatures": [ { "id": 738, "name": "sendLocation", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 118, "character": 7 } ], "parameters": [ { "id": 739, "name": "latitude", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } }, { "id": 740, "name": "longitude", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } }, { "id": 741, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2235, "name": "LocationMessageSendOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1495, "name": "Message", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 733, "name": "sendMediaGroup", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 114, "character": 7 } ], "signatures": [ { "id": 734, "name": "sendMediaGroup", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 114, "character": 7 } ], "parameters": [ { "id": 735, "name": "media", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "array", "elementType": { "type": "union", "types": [ { "type": "reference", "target": 2670, "name": "InputMediaPhoto", "package": "tgkit" }, { "type": "reference", "target": 2677, "name": "InputMediaVideo", "package": "tgkit" }, { "type": "reference", "target": 2700, "name": "InputMediaAudio", "package": "tgkit" }, { "type": "reference", "target": 2710, "name": "InputMediaDocument", "package": "tgkit" } ] } } }, { "id": 736, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2307, "name": "MediaGroupMessageSendOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "any" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 701, "name": "sendMessage", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 82, "character": 7 } ], "signatures": [ { "id": 702, "name": "sendMessage", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 82, "character": 7 } ], "parameters": [ { "id": 703, "name": "text", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } }, { "id": 704, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2128, "name": "TextMessageSendOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1495, "name": "Message", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 705, "name": "sendPhoto", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 86, "character": 7 } ], "signatures": [ { "id": 706, "name": "sendPhoto", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 86, "character": 7 } ], "parameters": [ { "id": 707, "name": "photo", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } }, { "id": 708, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2139, "name": "PhotoMessageSendOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1495, "name": "Message", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 750, "name": "sendPoll", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 130, "character": 7 } ], "signatures": [ { "id": 751, "name": "sendPoll", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 130, "character": 7 } ], "parameters": [ { "id": 752, "name": "poll", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 2278, "name": "PollOptions", "package": "tgkit" } }, { "id": 753, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2281, "name": "PollMessageSendOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1495, "name": "Message", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 758, "name": "sendSticker", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 138, "character": 7 } ], "signatures": [ { "id": 759, "name": "sendSticker", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 138, "character": 7 } ], "parameters": [ { "id": 760, "name": "sticker", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } }, { "id": 761, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2470, "name": "StickerSendOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1495, "name": "Message", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 742, "name": "sendVenue", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 122, "character": 7 } ], "signatures": [ { "id": 743, "name": "sendVenue", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 122, "character": 7 } ], "parameters": [ { "id": 744, "name": "venue", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 2247, "name": "VenueOptions", "package": "tgkit" } }, { "id": 745, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2252, "name": "VenueMessageSendOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1495, "name": "Message", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 717, "name": "sendVideo", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 98, "character": 7 } ], "signatures": [ { "id": 718, "name": "sendVideo", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 98, "character": 7 } ], "parameters": [ { "id": 719, "name": "video", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } }, { "id": 720, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2181, "name": "VideoMessageSendOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1495, "name": "Message", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 729, "name": "sendVideoNote", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 110, "character": 7 } ], "signatures": [ { "id": 730, "name": "sendVideoNote", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 110, "character": 7 } ], "parameters": [ { "id": 731, "name": "videoNote", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } }, { "id": 732, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2152, "name": "AudioMessageSendOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1495, "name": "Message", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 725, "name": "sendVoice", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 106, "character": 7 } ], "signatures": [ { "id": 726, "name": "sendVoice", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 106, "character": 7 } ], "parameters": [ { "id": 727, "name": "voice", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } }, { "id": 728, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2152, "name": "AudioMessageSendOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "reference", "target": 1495, "name": "Message", "package": "tgkit", "qualifiedName": "default" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 785, "name": "setAdministratorCustomTitle", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 166, "character": 7 } ], "signatures": [ { "id": 786, "name": "setAdministratorCustomTitle", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 166, "character": 7 } ], "parameters": [ { "id": 787, "name": "userId", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } }, { "id": 788, "name": "customTitle", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 824, "name": "setDescription", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 218, "character": 7 } ], "signatures": [ { "id": 825, "name": "setDescription", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 218, "character": 7 } ], "parameters": [ { "id": 826, "name": "description", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 891, "name": "setMenuButton", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 333, "character": 7 } ], "signatures": [ { "id": 892, "name": "setMenuButton", "variant": "signature", "kind": 4096, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Change the bot's menu button in this chat." } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 333, "character": 7 } ], "parameters": [ { "id": 893, "name": "menuButton", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 1467, "name": "MenuButton", "package": "tgkit", "qualifiedName": "default" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 881, "name": "setMyCommands", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 302, "character": 7 } ], "signatures": [ { "id": 882, "name": "setMyCommands", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 302, "character": 7 } ], "parameters": [ { "id": 883, "name": "commands", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "array", "elementType": { "type": "reference", "target": 647, "name": "BotCommand", "package": "tgkit", "qualifiedName": "default" } } }, { "id": 884, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Omit" }, "typeArguments": [ { "type": "reference", "target": 2429, "name": "MyCommandsSetOptions", "package": "tgkit" }, { "type": "literal", "value": "scope" } ], "name": "Omit", "package": "typescript" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 795, "name": "setPermissions", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 178, "character": 7 } ], "signatures": [ { "id": 796, "name": "setPermissions", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 178, "character": 7 } ], "parameters": [ { "id": 797, "name": "permissions", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 2118, "name": "ChatPermissions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 816, "name": "setPhoto", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 206, "character": 7 } ], "signatures": [ { "id": 817, "name": "setPhoto", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 206, "character": 7 } ], "parameters": [ { "id": 818, "name": "photo", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 845, "name": "setStickerSet", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 250, "character": 7 } ], "signatures": [ { "id": 846, "name": "setStickerSet", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 250, "character": 7 } ], "parameters": [ { "id": 847, "name": "stickerSetName", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 821, "name": "setTitle", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 214, "character": 7 } ], "signatures": [ { "id": 822, "name": "setTitle", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 214, "character": 7 } ], "parameters": [ { "id": 823, "name": "title", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "string" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 772, "name": "unbanMember", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 154, "character": 7 } ], "signatures": [ { "id": 773, "name": "unbanMember", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 154, "character": 7 } ], "parameters": [ { "id": 774, "name": "userId", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } }, { "id": 775, "name": "options", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "reference", "target": 2400, "name": "ChatMemberUnbanOptions", "package": "tgkit" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 792, "name": "unbanSenderChat", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 174, "character": 7 } ], "signatures": [ { "id": 793, "name": "unbanSenderChat", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 174, "character": 7 } ], "parameters": [ { "id": 794, "name": "senderChatId", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 879, "name": "unhideGeneralForumTopic", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 298, "character": 7 } ], "signatures": [ { "id": 880, "name": "unhideGeneralForumTopic", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 298, "character": 7 } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 867, "name": "unpinAllForumTopicMessages", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 278, "character": 7 } ], "signatures": [ { "id": 868, "name": "unpinAllForumTopicMessages", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 278, "character": 7 } ], "parameters": [ { "id": 869, "name": "forumTopicId", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "number" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 834, "name": "unpinAllMessages", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 230, "character": 7 } ], "signatures": [ { "id": 835, "name": "unpinAllMessages", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 230, "character": 7 } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] }, { "id": 831, "name": "unpinMessage", "variant": "declaration", "kind": 2048, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 226, "character": 7 } ], "signatures": [ { "id": 832, "name": "unpinMessage", "variant": "signature", "kind": 4096, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 226, "character": 7 } ], "parameters": [ { "id": 833, "name": "messageId", "variant": "param", "kind": 32768, "flags": { "isOptional": true }, "type": { "type": "intrinsic", "name": "number" } } ], "type": { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Promise" }, "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Promise", "package": "typescript" } } ] } ], "groups": [ { "title": "Constructors", "children": [ 690 ] }, { "title": "Properties", "children": [ 896, 698, 694, 700, 699, 696, 695, 697 ] }, { "title": "Methods", "children": [ 810, 768, 789, 858, 873, 850, 800, 813, 864, 885, 819, 848, 854, 870, 803, 798, 838, 842, 840, 894, 888, 877, 836, 827, 781, 861, 875, 776, 807, 721, 709, 762, 746, 754, 713, 765, 737, 733, 701, 705, 750, 758, 742, 717, 729, 725, 785, 824, 891, 881, 795, 816, 845, 821, 772, 792, 879, 867, 834, 831 ] } ], "sources": [ { "fileName": "packages/tgkit/src/structures/Chat.ts", "line": 48, "character": 21 } ], "extendedTypes": [ { "type": "reference", "target": { "sourceFileName": "packages/tgkit/src/structures/Base.ts", "qualifiedName": "default" }, "name": "default", "package": "tgkit" } ], "extendedBy": [ { "type": "reference", "target": 897, "name": "ChatFull" } ] }