MessageOriginChannel Class

extends Base

Properties

  • authorSignature: string
  • chat: Chat
  • client: Client
  • date: Date
  • messageId: number
  • type: Channel

Methods

{
  "id": 1651,
  "name": "MessageOriginChannel",
  "variant": "declaration",
  "kind": 128,
  "flags": {},
  "children": [
    {
      "id": 1652,
      "name": "constructor",
      "variant": "declaration",
      "kind": 512,
      "flags": {},
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/MessageOriginChannel.ts",
          "line": 24,
          "character": 1
        }
      ],
      "signatures": [
        {
          "id": 1653,
          "name": "new MessageOriginChannel",
          "variant": "signature",
          "kind": 16384,
          "flags": {},
          "sources": [
            {
              "fileName": "packages/tgkit/src/structures/MessageOriginChannel.ts",
              "line": 24,
              "character": 1
            }
          ],
          "parameters": [
            {
              "id": 1654,
              "name": "client",
              "variant": "param",
              "kind": 32768,
              "flags": {},
              "type": {
                "type": "reference",
                "target": 1,
                "name": "Client",
                "package": "tgkit",
                "qualifiedName": "default"
              }
            },
            {
              "id": 1655,
              "name": "data",
              "variant": "param",
              "kind": 32768,
              "flags": {},
              "type": {
                "type": "intrinsic",
                "name": "any"
              }
            }
          ],
          "type": {
            "type": "reference",
            "target": 1651,
            "name": "MessageOriginChannel",
            "package": "tgkit",
            "qualifiedName": "default"
          },
          "overwrites": {
            "type": "reference",
            "target": -1,
            "name": "Base.constructor"
          }
        }
      ],
      "overwrites": {
        "type": "reference",
        "target": -1,
        "name": "Base.constructor"
      },
      "implementationOf": {
        "type": "reference",
        "target": 1645,
        "name": "MessageOrigin.constructor"
      }
    },
    {
      "id": 1660,
      "name": "authorSignature",
      "variant": "declaration",
      "kind": 1024,
      "flags": {
        "isOptional": true
      },
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Signature of the original post author"
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/MessageOriginChannel.ts",
          "line": 22,
          "character": 1
        }
      ],
      "type": {
        "type": "intrinsic",
        "name": "string"
      }
    },
    {
      "id": 1658,
      "name": "chat",
      "variant": "declaration",
      "kind": 1024,
      "flags": {},
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Channel chat to which the message was originally sent"
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/MessageOriginChannel.ts",
          "line": 16,
          "character": 1
        }
      ],
      "type": {
        "type": "reference",
        "target": 689,
        "name": "Chat",
        "package": "tgkit",
        "qualifiedName": "default"
      }
    },
    {
      "id": 1661,
      "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"
      },
      "implementationOf": {
        "type": "reference",
        "target": 1650,
        "name": "MessageOrigin.client"
      }
    },
    {
      "id": 1657,
      "name": "date",
      "variant": "declaration",
      "kind": 1024,
      "flags": {},
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Date the message was sent originally"
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/MessageOriginChannel.ts",
          "line": 13,
          "character": 1
        }
      ],
      "type": {
        "type": "reference",
        "target": {
          "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts",
          "qualifiedName": "Date"
        },
        "name": "Date",
        "package": "typescript"
      },
      "implementationOf": {
        "type": "reference",
        "target": 1649,
        "name": "MessageOrigin.date"
      }
    },
    {
      "id": 1659,
      "name": "messageId",
      "variant": "declaration",
      "kind": 1024,
      "flags": {},
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Unique message identifier inside the chat"
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/MessageOriginChannel.ts",
          "line": 19,
          "character": 1
        }
      ],
      "type": {
        "type": "intrinsic",
        "name": "number"
      }
    },
    {
      "id": 1656,
      "name": "type",
      "variant": "declaration",
      "kind": 1024,
      "flags": {},
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Type of the message origin"
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/MessageOriginChannel.ts",
          "line": 10,
          "character": 1
        }
      ],
      "type": {
        "type": "reference",
        "target": 2078,
        "name": "Channel",
        "package": "tgkit",
        "qualifiedName": "MessageOriginType.Channel"
      },
      "implementationOf": {
        "type": "reference",
        "target": 1648,
        "name": "MessageOrigin.type"
      }
    }
  ],
  "groups": [
    {
      "title": "Constructors",
      "children": [
        1652
      ]
    },
    {
      "title": "Properties",
      "children": [
        1660,
        1658,
        1661,
        1657,
        1659,
        1656
      ]
    }
  ],
  "sources": [
    {
      "fileName": "packages/tgkit/src/structures/MessageOriginChannel.ts",
      "line": 8,
      "character": 21
    }
  ],
  "extendedTypes": [
    {
      "type": "reference",
      "target": {
        "sourceFileName": "packages/tgkit/src/structures/Base.ts",
        "qualifiedName": "default"
      },
      "name": "default",
      "package": "tgkit"
    }
  ],
  "implementedTypes": [
    {
      "type": "reference",
      "target": 1640,
      "name": "default",
      "package": "tgkit"
    }
  ]
}