Shared helpers for TelegramEx builder modules.
Summary
Functions
Reads a local file and adds it as a multipart payload value.
Adds a value to the effect payload.
Types
@type input() :: map() | TelegramEx.Effect.t()
Functions
@spec put_file_payload(input(), atom(), String.t()) :: TelegramEx.Effect.t()
Reads a local file and adds it as a multipart payload value.
If the file cannot be read, the returned effect contains {:file, reason}.
@spec put_payload(input(), atom(), term()) :: TelegramEx.Effect.t()
Adds a value to the effect payload.