View Source Telegex.Caller behaviour (Telegex v1.0.0-rc.7)

Unified call specification for Bot API.

Link to this section Summary

Link to this section Types

Link to this section Callbacks

Link to this callback

call(t, keyword, keyword)

View Source
@callback call(String.t(), keyword(), keyword()) :: {:ok, any()} | {:error, error()}

Link to this section Functions

Link to this function

call(method, params \\ [], opts \\ [])

View Source
@spec call(String.t(), keyword(), keyword()) :: {:ok, any()} | {:error, error()}