nadia v0.7.0 Nadia.API
Provides basic functionalities for Telegram Bot API.
Link to this section Summary
Link to this section Functions
Link to this function
build_file_url(file_path)
Use this function to build file url.
iex> Nadia.API.build_file_url("document/file_10") " https://api.telegram.org/file/bot #{Nadia.Config.token()}/document/file_10"
Link to this function
request(method, options \\ [], file_field \\ nil)
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 inoptionswhen sending files
Link to this function