Elixir Telegram Bot

published on
The quest was to develop a telegram bot over 24hrs, during an office hackathon event. I started out consulting documentation. Bot interaction was implemented as a GenServer named ConversationTree defmodule TelegramService.ConversationTree do use GenServer def start_link(name, conversation \\ %{message: [], response: [], tickets: []}) do {:ok, _} = GenServer.start_link(__MODULE__, conversation, name: name) name end def lookup(name) do GenServer.whereis(name) end def kill(name) do GenServer.stop(name) end def write_message(name, message = %{}) do GenServer. Read More...