telegram_bot v1.0.1 TelegramBot View Source

A simple Telegram Bot API wrapper for elixir.

Link to this section Summary

Types

Value could either be HTML or Markdown

Functions

Get basic info about a file and prepare it for downloading

A simple method for testing your bot’s auth token. Requires no parameters. Returns basic information about the bot in form of a User object

Link to this section Types

Link to this type parse_mode() View Source
parse_mode() :: String.t()

Value could either be HTML or Markdown.

Link to this type sendMessageOption() View Source
sendMessageOption() :: [parse_mode: parse_mode(), disable_web_page_preview: boolean(), disable_notification: boolean(), reply_to_message_id: integer()]
Link to this type telegram_response() View Source
telegram_response() :: {:ok, map()} | {:error, {atom(), String.t()}}

Link to this section Functions

Get basic info about a file and prepare it for downloading

A simple method for testing your bot’s auth token. Requires no parameters. Returns basic information about the bot in form of a User object.

Link to this function sendMessage(chat_id, text, options \\ []) View Source
sendMessage(String.t() | integer(), String.t(), sendMessageOption()) :: telegram_response()