Builder for voice message payloads.
Supports Telegram file IDs, URLs, local files, captions, parse modes, duration, and silent sends. See Messages and Media.
Summary
Functions
Sets the voice message caption.
Sets the voice message caption with parse mode.
Sets the voice message duration in seconds.
Sets the voice message by Telegram file ID.
Sets the voice message from a local file path.
Sends the voice message to the specified chat.
Sends the voice message without notification sound.
Sets the voice message from a URL.
Types
@type input() :: map() | TelegramEx.Effect.t()
Functions
@spec caption(input(), String.t()) :: TelegramEx.Effect.t()
Sets the voice message caption.
@spec caption(input(), String.t(), String.t()) :: TelegramEx.Effect.t()
Sets the voice message caption with parse mode.
@spec duration(input(), integer()) :: TelegramEx.Effect.t()
Sets the voice message duration in seconds.
@spec id(input(), String.t()) :: TelegramEx.Effect.t()
Sets the voice message by Telegram file ID.
@spec path(input(), String.t()) :: TelegramEx.Effect.t()
Sets the voice message from a local file path.
If the file cannot be read, the returned effect contains {:file, reason}.
@spec send(input(), integer()) :: TelegramEx.Effect.t()
Sends the voice message to the specified chat.
@spec silent(input()) :: TelegramEx.Effect.t()
Sends the voice message without notification sound.
@spec url(input(), String.t()) :: TelegramEx.Effect.t()
Sets the voice message from a URL.