Nadia. InputPaidMedia
(nadia v1.6.1)
View Source
Typed builders for Telegram InputPaidMedia objects.
The builder fixes the Telegram type discriminator, omits nil options,
and preserves explicit false values.
Media and cover fields accept Telegram file IDs, supported HTTP URLs, or
Nadia.InputFile values. Thumbnails must be fresh JPEG multipart uploads;
use Nadia.InputFile.path/2, bytes/3, or stream/3. A non-empty manual
attach:// reference is also accepted for compatibility. Live-photo video
and photo fields do not support URLs.
Summary
Types
A typed Telegram InputPaidMedia value. Its representation is opaque.
Functions
Builds a paid live-photo object from its video and static photo.
Builds a paid photo object.
Builds a paid video object.
Types
@type source() :: binary() | Nadia.InputFile.t()
@opaque t()
A typed Telegram InputPaidMedia value. Its representation is opaque.
@type variant() :: :live_photo | :photo | :video