TelegramEx.Builder.Sticker (TelegramEx v1.3.0)

Copy Markdown View Source

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

input()

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

Functions

id(input, id)

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

Sets the sticker by Telegram file ID.

path(input, path)

@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}.

send(input, id)

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

Sends the sticker to the specified chat.

silent(input)

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

Sends the sticker without notification sound.

url(input, url)

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

Sets the sticker from a URL.