tourmaline
Version, currently master branch1 version
- master branchlatestJun 12, 2026
github.com/Charibdys/tourmaline
Telegram Bot framework for Crystal
Installation
# Add this to your shard.yml
dependencies:
tourmaline:
github: Charibdys/tourmaline
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
>= 1.6.0- License
- MIT
- Author
- Chris Watson
Dependencies
Runtime Dependencies
- db~> 0.11.0github: crystal-lang/crystal-db
- http_proxy*github: mamantoha/http_proxy, branch: master
Development Dependencies
- ngrok0.3.1github: watzon/ngrok.crdev
- spectator~> 0.11.3github: icy-arctic-fox/spectatordev
- code_writer*github: watzon/code_writer, branch: maindev
README
Tourmaline
Telegram Bot API library written in Crystal. Meant to be a simple, easy to use, and fast library for writing Telegram bots.
Installation
Add this to your application's shard.yml:
dependencies:
tourmaline:
github: protoncr/tourmaline
branch: master
Usage
API documentation is also available here.
Examples are available in the examples folder.
Just for README purposes though, let's look at the echo bot example:
require "tourmaline"
client = Tourmaline::Client.new(ENV["BOT_TOKEN"])
echo_handler = Tourmaline::CommandHandler.new("echo") do |ctx|
text = ctx.text.to_s
ctx.reply(text) unless text.empty?
end
client.register(echo_handler)
client.poll
Roadmap
The following features are/will be implemented:
- [x] HTTP/HTTP Proxies
- [x] Client API
- [x] Implementation examples
- [x] Handlers for commands, queries, and more
- [x] Robust middleware system
- [x] Standard API queries
- [x] Stickers
- [x] Inline mode
- [x] Long polling
- [x] Webhooks
- [x] Payments
- [x] Games
- [x] Polls
- [x] Telegram Passport
- [ ] Framework Adapters
- [ ] Kemal
- [ ] Amber
- [ ] Lucky
- [ ] Athena
- [ ] Grip
If you want a new feature feel free to submit an issue or open a pull request.
Contributing
- Fork it ( https://github.com/protoncr/tourmaline/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
Thanks to all the people that have contributed to this project!
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Jun 12, 2026
- Crystal
>= 1.6.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/Charibdys/tourmaline
Metadata
- Created
- Aug 17, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 1
