TelegramEx.Builder.Poll (TelegramEx v1.3.0)

Copy Markdown View Source

Builder for poll and quiz payloads.

Builds sendPoll payloads for regular polls and quizzes. See Messages and Media.

Summary

Types

input()

@type input() :: map() | TelegramEx.Effect.t()

Functions

anonymous(input, boolean)

@spec anonymous(input(), boolean()) :: TelegramEx.Effect.t()

close_date(input, timestamp)

@spec close_date(input(), integer()) :: TelegramEx.Effect.t()

explanation(input, text)

@spec explanation(input(), String.t()) :: TelegramEx.Effect.t()

explanation(input, text, parse_mode)

@spec explanation(input(), String.t(), String.t()) :: TelegramEx.Effect.t()

multiple_answers(input, boolean)

@spec multiple_answers(input(), boolean()) :: TelegramEx.Effect.t()

open_period(input, seconds)

@spec open_period(input(), integer()) :: TelegramEx.Effect.t()

poll(input, question, options)

@spec poll(input(), String.t(), [String.t()]) :: TelegramEx.Effect.t()

quiz(input, question, options, correct_option_id)

@spec quiz(input(), String.t(), [String.t()], integer()) :: TelegramEx.Effect.t()

send(input, id)

@spec send(input(), integer()) :: TelegramEx.Effect.t()

silent(input)

@spec silent(input()) :: TelegramEx.Effect.t()