LoggerTelegramBackend.Sender behaviour (LoggerTelegramBackend v2.0.1) View Source

Specifies the API for using a custom Sender.

Link to this section Summary

Callbacks

Creates a custom Tesla.Client

Link to this section Callbacks

Specs

client(opts :: Keyword.t()) :: Tesla.Client.t()

Creates a custom Tesla.Client

Link to this callback

send_message(tesla_client, message, opts)

View Source

Specs

send_message(
  tesla_client :: Tesla.Client.t(),
  message :: String.t(),
  opts :: Keyword.t()
) :: :ok | {:error, any()}

Sends a message