• Send or retract a vote in a poll.

    Parameters

    • client: ITelegramClient
    • params: InputMessageId & { options: MaybeArray<number | Uint8Array> | null }
      • options: MaybeArray<number | Uint8Array> | null

        Selected options, or null to retract. You can pass indexes of the answers or the Buffers representing them. In case of indexes, the poll will first be requested from the server.

    Returns Promise<Poll>