Documentation - v0.27.0
    Preparing search index...
    • Send or retract a vote in a poll.

      Parameters

      • client: ITelegramClient
      • params: InputMessageId & {
            options: MaybeArray<number | Uint8Array<ArrayBufferLike>> | null;
        }
        • options: MaybeArray<number | Uint8Array<ArrayBufferLike>> | 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>