{"repo":"visciang/telegram","free":true,"listed":false,"github":"https://github.com/visciang/telegram","clone":"git clone https://github.com/visciang/telegram.git","description":"Telegram library for the Elixir language","language":"Elixir","stars":247,"topics":["elixir","telegram","bot"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Telegram Telegram library for the Elixir language. It provides: - an inteface to the Telegram Bot HTTP-based APIs ( Telegram.Api ) - a couple of bot behaviours to define you bots ( Telegram.Bot , Telegram.ChatBot ) - two bot runners ( Telegram.Poller , Telegram.Webhook ) Installation The package can be installed by adding telegram to your list of dependencies in mix.exs : Telegram Bot API This module expose a light layer over the Telegram Bot API HTTP-based interface, it does not expose any \"(data)binding\" over the HTTP interface and tries to abstract away only the boilerplate for building / sending / serializing the API requests. Compared to a full data-binded interface it could result less \"typed frendly\" but it will work with any version of the Bot API, hopefully without updates or incompatibily with new Bot API versions (as much as they remain backward compatible). References: API specification Bot intro for developers Given the token of your Bot you can issue any request using: method: Telegram API method name (ex. \"getMe\", \"sendMessage\") options: Telegram API method specific parameters (you can use Elixir's native types) Examples: Given the bot token (something like): getMe sendMessage getUpdates Sending files If an API parameter has a InputFile type and you want to send a local file, for example a photo stored at \"/tmp/photo.jpg\", just wrap the parameter value in a {:file, \"/tmp/photo.jpg\"} tuple. If the file content is in memory wrap it in a {:file content, data, \"pho","default_branch":null,"files":null,"tree":[],"storefront":"/r/visciang","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/visciang/telegram/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}