A simple telegram bot wrapper for handling text command reply.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 6c32f67 Oct 29, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Clean up format tabs->spaces and re-wrap for consistancy. Sep 21, 2018
test Capitalize test Sep 19, 2018
.travis.yml Add travis and basic README guide Sep 17, 2018
LICENSE Initial commit Sep 17, 2018
Manifest.toml Fix HTTP dep Oct 25, 2018
Project.toml Add Dep Oct 25, 2018
README.md Add installation from METADATA.jl Sep 27, 2018
REQUIRE Remove stdlib from REQUIRE Oct 29, 2018



A julia wrapper for telegram api (mostly replying commands consists text).

Build Status
Build Status


The package is registered in METADATA.jl and can be installed with Pkg.add, or in REPL by pressing ] add Telegrambot.

julia> Pkg.add("Telegrambot")

Basic Usage

For guide on telegram bot creation and api, check this out.

using Telegrambot
botApi = "bot<your_api_key>"

welcomeMsg(incoming::AbstractString) = "Welcome to my awesome bot"

echo(incoming::AbstractString) = incoming

txtCmds = Dict()
txtCmds["repeat_msg"] = echo #this will respond to '/repeat_msg <any thing>'
txtCmds["start"] = welcomeMsg # this will respond to '/start'

inlineOpts = Dict() #Title, result pair
inlineOpts["Make Uppercase"] = uppercase #this will generate an pop-up named Make Uppercase and upon tapping return uppercase(<user_input>)

#uppercase is a function that takes a string and return the uppercase version of that string

startBot(botApi; textHandle = txtCmds, inlineQueryHandle=inlineOpts)


  • Add Inline query respond
  • Add function to quote reply to a message
  • Add function to reply with a file/image
  • Add function to serve as a IRC-Tg bot