Telegramex

Telegram’s Bot API wrapper.

Hex.pm VersionCICoverage Status

Features

Usage

  1. Add the dependencies
def deps do
  [
    {:finch, "~> 0.5"},
    {:telegramex, "~> 0.1.1"}
  ]
end
  1. Add the finch client to your supervision tree
children = [
  {Finch, name: Telegramex.HTTPClient}
]

Note: Checkout the Telegramex.Client on how to use other HTTP client.

  1. Make a request
client = %Telegramex.Client{token: "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"}
Telegramex.get_updates(client)

Full documentation can be found at https://hexdocs.pm/telegramex.

Telemetry

Telegramex executes the following events:

Changelog

See the changelog.

Contributing

See the contributing file.

License

Apache License, Version 2.0 © Thiago Santos