Telegram Bot API client and framework for Elixir.
Provides convenience functions for common Telegram Bot API methods, automatic type parsing, long-polling, webhooks, and a bot behaviour.
Quick Start
# Get bot info
{:ok, me} = Hotline.get_me(token: "your-bot-token")
# Send a message
{:ok, msg} = Hotline.send_message(%{chat_id: 123, text: "Hello!"}, token: "your-bot-token")
# Stream updates in IEx
Hotline.stream(token: "your-token") |> Enum.each(&IO.inspect/1)
Summary
Functions
Answer a callback query.
Delete a message.
Delete webhook.
Edit a message's text.
Get information about the bot.
Make a raw API request.
Send a document.
Send a text message.
Send a photo.
Set webhook URL.
Create a lazy stream of updates.
Functions
Answer a callback query.
Delete a message.
Delete webhook.
Edit a message's text.
Get information about the bot.
Make a raw API request.
Send a document.
Send a text message.
Send a photo.
Set webhook URL.
Create a lazy stream of updates.