InlineQueryResult Class

Represents one result of an inline query. **Note:** All URLs passed in inline query results will be available to end users and therefore must be assumed to be **public**.

Properties

  • id: string
  • type: InlineQueryResultType

Methods

  • toJSON()
{
  "id": 1401,
  "name": "InlineQueryResult",
  "variant": "declaration",
  "kind": 128,
  "flags": {},
  "comment": {
    "summary": [
      {
        "kind": "text",
        "text": "Represents one result of an inline query.\n\n**Note:** All URLs passed in inline query results will be available to end users\nand therefore must be assumed to be **public**."
      }
    ]
  },
  "children": [
    {
      "id": 1402,
      "name": "constructor",
      "variant": "declaration",
      "kind": 512,
      "flags": {},
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/InlineQueryResult.ts",
          "line": 16,
          "character": 1
        }
      ],
      "signatures": [
        {
          "id": 1403,
          "name": "new InlineQueryResult",
          "variant": "signature",
          "kind": 16384,
          "flags": {},
          "sources": [
            {
              "fileName": "packages/tgkit/src/structures/InlineQueryResult.ts",
              "line": 16,
              "character": 1
            }
          ],
          "parameters": [
            {
              "id": 1404,
              "name": "type",
              "variant": "param",
              "kind": 32768,
              "flags": {},
              "type": {
                "type": "reference",
                "target": 2028,
                "name": "InlineQueryResultType",
                "package": "tgkit"
              }
            },
            {
              "id": 1405,
              "name": "id",
              "variant": "param",
              "kind": 32768,
              "flags": {},
              "type": {
                "type": "intrinsic",
                "name": "string"
              }
            }
          ],
          "type": {
            "type": "reference",
            "target": 1401,
            "name": "InlineQueryResult",
            "package": "tgkit",
            "qualifiedName": "default"
          }
        }
      ]
    },
    {
      "id": 1407,
      "name": "id",
      "variant": "declaration",
      "kind": 1024,
      "flags": {},
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Unique identifier for this result, 1-64 bytes"
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/InlineQueryResult.ts",
          "line": 14,
          "character": 1
        }
      ],
      "type": {
        "type": "intrinsic",
        "name": "string"
      }
    },
    {
      "id": 1406,
      "name": "type",
      "variant": "declaration",
      "kind": 1024,
      "flags": {},
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Type of the result"
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/InlineQueryResult.ts",
          "line": 11,
          "character": 1
        }
      ],
      "type": {
        "type": "reference",
        "target": 2028,
        "name": "InlineQueryResultType",
        "package": "tgkit"
      }
    },
    {
      "id": 1408,
      "name": "toJSON",
      "variant": "declaration",
      "kind": 2048,
      "flags": {},
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/InlineQueryResult.ts",
          "line": 21,
          "character": 1
        }
      ],
      "signatures": [
        {
          "id": 1409,
          "name": "toJSON",
          "variant": "signature",
          "kind": 4096,
          "flags": {},
          "sources": [
            {
              "fileName": "packages/tgkit/src/structures/InlineQueryResult.ts",
              "line": 21,
              "character": 1
            }
          ],
          "type": {
            "type": "intrinsic",
            "name": "object"
          }
        }
      ]
    }
  ],
  "groups": [
    {
      "title": "Constructors",
      "children": [
        1402
      ]
    },
    {
      "title": "Properties",
      "children": [
        1407,
        1406
      ]
    },
    {
      "title": "Methods",
      "children": [
        1408
      ]
    }
  ],
  "sources": [
    {
      "fileName": "packages/tgkit/src/structures/InlineQueryResult.ts",
      "line": 9,
      "character": 21
    }
  ]
}