nadia v0.4.3 Nadia.API

Provides basic functionalities for Telegram Bot API.

Summary

Functions

request(method, options \\ [], file_field \\ nil)

Specs

request(binary, [{atom, any}], atom) ::
  :ok |
  {:error, Nadia.Model.Error.t} |
  {:ok, any}

Generic method to call Telegram Bot API.

Args:

  • method - name of API method
  • options - orddict of options
  • file_field - specify the key of file_field in options when sending files
request?(method, options \\ [], file_field \\ nil)