InlineKeyboardMarkup Class

Represents an inline keyboard that appears right next to the message it belongs to.

Properties

  • inlineKeyboard:

Methods

  • setKeyboard(inlineKeyboard: undefined)
  • toJSON()
{
  "id": 1379,
  "name": "InlineKeyboardMarkup",
  "variant": "declaration",
  "kind": 128,
  "flags": {},
  "comment": {
    "summary": [
      {
        "kind": "text",
        "text": "Represents an inline keyboard that appears right next to the message it belongs to."
      }
    ],
    "blockTags": [
      {
        "tag": "@see",
        "content": [
          {
            "kind": "inline-tag",
            "tag": "@link",
            "text": "https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating",
            "target": "https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating"
          }
        ]
      }
    ]
  },
  "children": [
    {
      "id": 1380,
      "name": "constructor",
      "variant": "declaration",
      "kind": 512,
      "flags": {},
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/InlineKeyboardMarkup.ts",
          "line": 12,
          "character": 1
        }
      ],
      "signatures": [
        {
          "id": 1381,
          "name": "new InlineKeyboardMarkup",
          "variant": "signature",
          "kind": 16384,
          "flags": {},
          "sources": [
            {
              "fileName": "packages/tgkit/src/structures/InlineKeyboardMarkup.ts",
              "line": 12,
              "character": 1
            }
          ],
          "parameters": [
            {
              "id": 1382,
              "name": "data",
              "variant": "param",
              "kind": 32768,
              "flags": {},
              "type": {
                "type": "reference",
                "target": 2383,
                "name": "InlineKeyboardMarkupData",
                "package": "tgkit"
              },
              "defaultValue": "{}"
            }
          ],
          "type": {
            "type": "reference",
            "target": 1379,
            "name": "InlineKeyboardMarkup",
            "package": "tgkit",
            "qualifiedName": "default"
          }
        }
      ]
    },
    {
      "id": 1383,
      "name": "inlineKeyboard",
      "variant": "declaration",
      "kind": 1024,
      "flags": {},
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Array of button rows, each represented by an Array of InlineKeyboardButton objects"
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/InlineKeyboardMarkup.ts",
          "line": 10,
          "character": 1
        }
      ],
      "type": {
        "type": "array",
        "elementType": {
          "type": "array",
          "elementType": {
            "type": "reference",
            "target": 1340,
            "name": "InlineKeyboardButton",
            "package": "tgkit",
            "qualifiedName": "default"
          }
        }
      }
    },
    {
      "id": 1384,
      "name": "setKeyboard",
      "variant": "declaration",
      "kind": 2048,
      "flags": {},
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/InlineKeyboardMarkup.ts",
          "line": 16,
          "character": 1
        }
      ],
      "signatures": [
        {
          "id": 1385,
          "name": "setKeyboard",
          "variant": "signature",
          "kind": 4096,
          "flags": {},
          "sources": [
            {
              "fileName": "packages/tgkit/src/structures/InlineKeyboardMarkup.ts",
              "line": 16,
              "character": 1
            }
          ],
          "parameters": [
            {
              "id": 1386,
              "name": "inlineKeyboard",
              "variant": "param",
              "kind": 32768,
              "flags": {},
              "type": {
                "type": "array",
                "elementType": {
                  "type": "array",
                  "elementType": {
                    "type": "reference",
                    "target": 1340,
                    "name": "InlineKeyboardButton",
                    "package": "tgkit",
                    "qualifiedName": "default"
                  }
                }
              }
            }
          ],
          "type": {
            "type": "reference",
            "target": 1379,
            "name": "InlineKeyboardMarkup",
            "package": "tgkit",
            "qualifiedName": "default"
          }
        }
      ]
    },
    {
      "id": 1387,
      "name": "toJSON",
      "variant": "declaration",
      "kind": 2048,
      "flags": {},
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/InlineKeyboardMarkup.ts",
          "line": 21,
          "character": 1
        }
      ],
      "signatures": [
        {
          "id": 1388,
          "name": "toJSON",
          "variant": "signature",
          "kind": 4096,
          "flags": {},
          "sources": [
            {
              "fileName": "packages/tgkit/src/structures/InlineKeyboardMarkup.ts",
              "line": 21,
              "character": 1
            }
          ],
          "type": {
            "type": "intrinsic",
            "name": "object"
          }
        }
      ]
    }
  ],
  "groups": [
    {
      "title": "Constructors",
      "children": [
        1380
      ]
    },
    {
      "title": "Properties",
      "children": [
        1383
      ]
    },
    {
      "title": "Methods",
      "children": [
        1384,
        1387
      ]
    }
  ],
  "sources": [
    {
      "fileName": "packages/tgkit/src/structures/InlineKeyboardMarkup.ts",
      "line": 8,
      "character": 21
    }
  ]
}