Telegramex.Client (Telegramex v0.1.0) View Source

Provides credentials and connection details for making requests to Telegram Bot API.

Options

  • token - (required) Telegram Bot token.
  • base_url - (optional) Telegram Bot API base url. Default: https://api.telegram.org.
  • http_client - (optional) Custom HTTP Client. Accepts a tuple with a module and a list of options. The module must implement the callback Telegramex.HTTPClient.request/5.

Usage

client = %Telegramex.Client{token: "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"}

Link to this section Summary

Link to this section Types

Specs

t() :: %Telegramex.Client{
  base_url: String.t(),
  http_client: {module(), Keyword.t()},
  token: String.t()
}