Class WorketClient

Handles incoming updates from the Telegram API and routes them to the appropriate event handlers.

Constructors

Properties

Methods

  • Handles new business connections.

    Parameters

    • data: undefined | BusinessConnection

      The business connection data.

    Returns undefined | BusinessConnection

  • Handles incoming callback queries.

    Parameters

    • data: undefined | CallbackQuery

      The callback query data.

    Returns undefined | CallbackQuery

  • Handles updates to chat boosts.

    Parameters

    • data: undefined | ChatBoostUpdated

      The chat boost update data.

    Returns undefined | ChatBoostUpdated

  • Handles chat join requests.

    Parameters

    • data: undefined | ChatJoinRequest

      The chat join request data.

    Returns undefined | ChatJoinRequest

  • Handles updates to chat members.

    Parameters

    • data: undefined | ChatMemberUpdated

      The chat member update data.

    Returns undefined | ChatMemberUpdated

  • Handles new chat members being added.

    Parameters

    • data: undefined | Message & NonChannel

      The message data containing new chat members.

    Returns undefined | Message

  • Handles chat members being removed.

    Parameters

    • data: undefined | Message & NonChannel

      The message data containing removed chat members.

    Returns undefined | Message

  • Handles chosen inline results.

    Parameters

    • data: undefined | ChosenInlineResult

      The chosen inline result data.

    Returns undefined | ChosenInlineResult

  • Handles deleted business messages.

    Parameters

    • data: undefined | BusinessMessagesDeleted

      The deleted business messages data.

    Returns undefined | BusinessMessagesDeleted

  • Handles incoming inline queries.

    Parameters

    • data: undefined | InlineQuery

      The inline query data.

    Returns undefined | InlineQuery

  • Handles new messages, channel posts, or business messages.

    Parameters

    • data:
          | undefined
          | Message & NonChannel
          | Message & Channel
          | Message & Private

      The message data.

    Returns undefined | Message

  • Handles edited messages, channel posts, or business messages.

    Parameters

    • data:
          | undefined
          | Message & Edited & NonChannel
          | Message & Edited & Channel
          | Message & Edited & Private

      The edited message data.

    Returns undefined | Message

  • Handles updates to the client's chat member status.

    Parameters

    • data: undefined | ChatMemberUpdated

      The chat member update data.

    Returns undefined | ChatMemberUpdated

  • Handles new polls.

    Parameters

    • data: undefined | Poll

      The poll data.

    Returns undefined | Poll

  • Handles new poll answers.

    Parameters

    • data: undefined | PollAnswer

      The poll answer data.

    Returns undefined | PollAnswer

  • Handles pre-checkout queries.

    Parameters

    • data: undefined | PreCheckoutQuery

      The pre-checkout query data.

    Returns undefined | PreCheckoutQuery

  • Handles purchased paid media.

    Parameters

    • data: undefined | PaidMediaPurchased

      The purchased paid media.

    Returns undefined | PaidMediaPurchased

  • Handles removed chat boosts.

    Parameters

    • data: undefined | ChatBoostRemoved

      The removed chat boost data.

    Returns undefined | ChatBoostRemoved

  • Handles incoming shipping queries.

    Parameters

    • data: undefined | ShippingQuery

      The shipping query data.

    Returns undefined | ShippingQuery