Nadia. InputPollMedia
(nadia v1.6.1)
View Source
Typed builders for media that is specific to Telegram polls.
Poll descriptions and quiz explanations support locations and venues in
addition to selected Nadia.InputMedia variants. Poll options additionally
support links and stickers.
Builders fix the Telegram type discriminator and omit options whose value
is nil. Sticker uploads must use .webp, .tgs, or .webm filenames;
HTTP sticker URLs must use a .webp URL path.
Summary
Types
A typed poll-media value. Its representation is opaque.
Functions
Builds an HTTP or HTTPS link for a poll option.
Builds a location for a poll description, explanation, or option.
Builds a sticker for a poll option.
Builds a venue for a poll description, explanation, or option.
Types
@type context() :: :description | :explanation | :option
@type source() :: binary() | Nadia.InputFile.t()
@opaque t()
A typed poll-media value. Its representation is opaque.
@type variant() :: :link | :location | :sticker | :venue
Functions
Builds an HTTP or HTTPS link for a poll option.
Builds a location for a poll description, explanation, or option.
Builds a sticker for a poll option.
Builds a venue for a poll description, explanation, or option.