plugins/gateways/telegram/fetch_client

FetchClient adapter for telega. Wraps gleam/httpc with a configurable timeout to match telega’s FetchClient signature. Uses a longer HTTP timeout than the Telegram polling timeout so long-poll connections aren’t killed before the server responds.

Values

pub fn new() -> fn(request.Request(String)) -> Result(
  response.Response(String),
  error.TelegaError,
)

Create a FetchClient function for use with telega. The returned function can be passed to telega/client.new().

Search Document