Builder for sticker payloads.
Supports Telegram file IDs, URLs, local files, and silent sends. See Messages and Media.
Summary
Functions
Sets the sticker by Telegram file ID.
Sets the sticker from a local file path.
Sends the sticker to the specified chat.
Sends the sticker without notification sound.
Sets the sticker from a URL.
Types
@type input() :: map() | TelegramEx.Effect.t()
Functions
@spec id(input(), String.t()) :: TelegramEx.Effect.t()
Sets the sticker by Telegram file ID.
@spec path(input(), String.t()) :: TelegramEx.Effect.t()
Sets the sticker 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 sticker to the specified chat.
@spec silent(input()) :: TelegramEx.Effect.t()
Sends the sticker without notification sound.
@spec url(input(), String.t()) :: TelegramEx.Effect.t()
Sets the sticker from a URL.