Telegraph.API (telegraph v0.7.1) View Source
Provides basic functionalities for Telegram Bot API.
Link to this section Summary
Link to this section Functions
Specs
Use this function to build file url.
iex> Telegraph.API.build_file_url("document/file_10") "https://api.telegram.org/file/bot#{Telegraph.Config.token()}/document/file_10"
Specs
request(binary(), [{atom(), any()}], atom()) :: :ok | {:error, Telegraph.Model.Error.t()} | {:ok, any()}
Generic method to call Telegram Bot API.
Args:
method
- name of API methodoptions
- orddict of optionsfile_field
- specify the key of file_field inoptions
when sending files