Skip to content

botanio/exBotan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exBotan

Build Status Hex pm

exBotan is an Elixir wrapper for Botan.io – analytics system for your Telegram bots.

Installation

  1. Add exBotan to your list of dependencies in mix.exs:
def deps do
  [{:botan, "~> 0.1.2"}]
end

Run $ mix deps.get.

  1. Ensure exBotan is started before your application:
def application do
  [applications: [:botan]]
end

Configuration

Create Botan.io account:

  1. Go to Botaniobot
  2. Use Add bot command to get a token

Add your Botan.io token In config/config.exs like this

config :botan, token: "replace_with_botan_token"

Usage

iex(1)> Botan.track("/start", 12345, chat_id: 1345)
{:ok, %{status: "accepted"}}

iex(2)> Botan.track("/help", 12345)
{:ok, %{status: "accepted"}}

Documentation

About

Elixir wrapper for Botan.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 100.0%