Req-based Bot API engine.
All methods are POST /bot<token>/<method> with a JSON body (or multipart
form for file uploads). Req's own retry is disabled; a bounded retry runs
here instead: 429 always retries (delay from parameters.retry_after),
transport errors retry with base backoff.
2xx responses are unwrapped from the Telegram envelope ({"ok" => true, "result" => ...} → result); failures become Noizu.Telegram.Error.
Summary
Functions
Perform a Bot API method call.
Functions
@spec perform(Noizu.Telegram.Client.t(), String.t(), keyword()) :: {:ok, term()} | {:error, Noizu.Telegram.Error.t()}
Perform a Bot API method call.
Options: :json (JSON body map), :form (urlencoded form), :multipart
(multipart form — File.Stream values allowed for uploads),
:params (query params, nil-dropped).