TextQuote Class

extends Base

Properties

  • client: Client
  • entities:
  • isManual: boolean
  • position: number
  • text: string

Methods

{
  "id": 1878,
  "name": "TextQuote",
  "variant": "declaration",
  "kind": 128,
  "flags": {},
  "children": [
    {
      "id": 1879,
      "name": "constructor",
      "variant": "declaration",
      "kind": 512,
      "flags": {},
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/TextQuote.ts",
          "line": 24,
          "character": 1
        }
      ],
      "signatures": [
        {
          "id": 1880,
          "name": "new TextQuote",
          "variant": "signature",
          "kind": 16384,
          "flags": {},
          "sources": [
            {
              "fileName": "packages/tgkit/src/structures/TextQuote.ts",
              "line": 24,
              "character": 1
            }
          ],
          "parameters": [
            {
              "id": 1881,
              "name": "client",
              "variant": "param",
              "kind": 32768,
              "flags": {},
              "type": {
                "type": "reference",
                "target": 1,
                "name": "Client",
                "package": "tgkit",
                "qualifiedName": "default"
              }
            },
            {
              "id": 1882,
              "name": "data",
              "variant": "param",
              "kind": 32768,
              "flags": {},
              "type": {
                "type": "intrinsic",
                "name": "any"
              }
            }
          ],
          "type": {
            "type": "reference",
            "target": 1878,
            "name": "TextQuote",
            "package": "tgkit",
            "qualifiedName": "default"
          },
          "overwrites": {
            "type": "reference",
            "target": -1,
            "name": "Base.constructor"
          }
        }
      ],
      "overwrites": {
        "type": "reference",
        "target": -1,
        "name": "Base.constructor"
      }
    },
    {
      "id": 1887,
      "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": 1885,
      "name": "entities",
      "variant": "declaration",
      "kind": 1024,
      "flags": {
        "isOptional": true
      },
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Special entities that appear in the quote.\nCurrently, only bold, italic, underline, strikethrough, spoiler, and customEmoji entities are kept in quotes."
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/TextQuote.ts",
          "line": 16,
          "character": 1
        }
      ],
      "type": {
        "type": "array",
        "elementType": {
          "type": "reference",
          "target": 1625,
          "name": "MessageEntity",
          "package": "tgkit",
          "qualifiedName": "default"
        }
      }
    },
    {
      "id": 1886,
      "name": "isManual",
      "variant": "declaration",
      "kind": 1024,
      "flags": {
        "isOptional": true
      },
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "True, if the quote was chosen manually by the message sender.\nOtherwise, the quote was added automatically by the server."
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/TextQuote.ts",
          "line": 22,
          "character": 1
        }
      ],
      "type": {
        "type": "intrinsic",
        "name": "boolean"
      }
    },
    {
      "id": 1884,
      "name": "position",
      "variant": "declaration",
      "kind": 1024,
      "flags": {},
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Approximate quote position in the original message in UTF-16 code units as specified by the sender"
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/TextQuote.ts",
          "line": 10,
          "character": 1
        }
      ],
      "type": {
        "type": "intrinsic",
        "name": "number"
      }
    },
    {
      "id": 1883,
      "name": "text",
      "variant": "declaration",
      "kind": 1024,
      "flags": {},
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Text of the quoted part of a message that is replied to by the given message"
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/TextQuote.ts",
          "line": 7,
          "character": 1
        }
      ],
      "type": {
        "type": "intrinsic",
        "name": "string"
      }
    }
  ],
  "groups": [
    {
      "title": "Constructors",
      "children": [
        1879
      ]
    },
    {
      "title": "Properties",
      "children": [
        1887,
        1885,
        1886,
        1884,
        1883
      ]
    }
  ],
  "sources": [
    {
      "fileName": "packages/tgkit/src/structures/TextQuote.ts",
      "line": 5,
      "character": 21
    }
  ],
  "extendedTypes": [
    {
      "type": "reference",
      "target": {
        "sourceFileName": "packages/tgkit/src/structures/Base.ts",
        "qualifiedName": "default"
      },
      "name": "default",
      "package": "tgkit"
    }
  ]
}