Current section

Files

Jump to
telega include telega@client_TelegramClient.hrl
Raw

include/telega@client_TelegramClient.hrl

-record(telegram_client, {
token :: binary(),
retry_policy :: telega@client:retry_policy(),
tg_api_url :: binary(),
fetch_client :: fun((gleam@http@request:request(binary())) -> {ok, gleam@http@response:response(binary())} | {error, telega@error:telega_error()}),
fetch_bits_client :: gleam@option:option(fun((gleam@http@request:request(bitstring())) -> {ok, gleam@http@response:response(bitstring())} | {error, telega@error:telega_error()})),
request_queue :: gleam@option:option(telega@internal@request_queue:request_queue()),
per_chat_limits :: boolean(),
transformers :: list(fun((telega@client:telegram_api_request(), fun((telega@client:telegram_api_request()) -> {ok, gleam@http@response:response(binary())} | {error, telega@error:telega_error()})) -> {ok, gleam@http@response:response(binary())} | {error, telega@error:telega_error()})),
default_parse_mode :: gleam@option:option(telega@format:parse_mode())
}).