telegant
Version, currently release1 version
- releaselatestApr 20, 2025
github.com/Telegant/Telegant
Modern, elegant Telegram bot framework
19 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
telegant:
github: Telegant/Telegant
version: ~> releaseThen run:
shards installshard.yml
- Crystal
>= 1.8.0- License
- MIT
- Author
- Vladyslav Kotov <kotov.vladyslav649@protonmail.com>
- Target
telegantfrom src/telegant.cr
Dependencies
Development Dependencies
- ameba~> 1.4.0github: crystal-ameba/amebadev
README
<h1 align="center">Telegant</h1>
<p align="center">
<a href="https://github.com/telegant/telegant/releases"><img src="https://img.shields.io/github/v/release/telegant/telegant?include_prereleases" alt="GitHub release"></a>
<a href="https://crystal-lang.org/"><img src="https://img.shields.io/badge/built%20with-Crystal-black" alt="Built with Crystal"></a>
<a href="https://github.com/yourusername/telegant/blob/main/LICENSE"><img src="https://img.shields.io/github/license/telegant/telegant" alt="License"></a>
</p>
<p align="center">Telegant is a feature-rich Telegram bot framework specifically built for Crystal. Built with beauty and scalability in mind, it offers a simple syntax for creating complicated bot interactions while retaining Crystal's efficiency benefits.</p>
## π§© Features
- β¨ **Elegant annotation-based API** - Define handlers with Crystal annotations
- π‘οΈ **Middleware system** - Add customized logic, such as rate limitation, logging, or access restriction
- π **Attachable middleware** - Add middleware to specified handlers
- π **Context** - Easy access to the current update properties and API calls
- π **State management** - Integrated user state management for complicated interactions
- π **Dialog management** - Create multi-step conversations with built-in state management
## π¨ Installation
To-do
## π‘ Example
```crystal
require "telegant"
class MyBot < Telegant::Bot
@[Hears("hi", "hello")]
def on_greet(update, bot)
bot.reply("Hey there!")
end
bot = MyBot.new("YOUR_BOT_TOKEN")
bot.start()
```
## π Documentation
To-do
## β€οΈ Contribute
To-do
## πΊοΈ Roadmap
To-do
## π Community
- [Join our Discord](https://discord.gg/nzjSdbjE)
- [Telegram Group](https://t.me/telegant_group)
- [Telegram Channel](https://t.me/telegant_official)
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
release- Tagged
- Apr 20, 2025
- Commit
b3c1a6e092b9- Crystal
>= 1.8.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/Telegant/Telegant
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 1