Documentation - v0.32.2
    Preparing search index...

    Function addPollAnswer

    • Suggest a new answer to a poll.

      Only possible in polls with Poll.canAddAnswers set

      Parameters

      • client: ITelegramClient
      • params: InputMessageId & {
            answer: InputText | InputPollAnswer | TypePollAnswer;
            progressCallback?: (uploaded: number, total: number) => void;
            shouldDispatch?: true;
        }
        • answer: InputText | InputPollAnswer | TypePollAnswer

          The answer to add

        • OptionalprogressCallback?: (uploaded: number, total: number) => void

          Upload progress callback for the answer media

        • OptionalshouldDispatch?: true

          Whether to dispatch the updates that will be generated by this call to the client's update handler.

      Returns Promise<void>