Menu-inline framework for Telegram bots
Reason this release was yanked:
Deprecated: project is being rewritten from scratch.
Project description
Minline
Minline is a lightweight framework for building Telegram bots with Aiogram 3.x, offering a modular routing system, smart navigation, and extensible UI components.
✨ Features
- 🧭 Declarative
@app.menu("path")navigation system - 🔙 Automatic back button with
#route://(trims the last segment) - 🌐 Link buttons and WebApp buttons via
Button(text, url=...) - 🧩 Easy-to-extend components:
Menu,Button, etc. - 🧠 SQLite-based session manager
- ⚙️ Dynamic UI updates and custom action handling
- 🪶 Minimal external dependencies
🚀 Installation
pip install minline
⚡ Quick Example
from minline import MinlineApp, Menu, Button
app = MinlineApp("YOUR_BOT_TOKEN")
@app.menu("main")
def main_menu():
return Menu(
menu_id="main",
controls=[
[Button("Settings", "#route:/settings")],
[Button("Open Web", url="https://example.com")]
]
)
@app.menu("main/settings")
def settings_menu():
return Menu(
menu_id="settings",
controls=[
[Button("Notifications", "toggle_notifications")]
]
)
app.run()
📚 Documentation
Planned at: https://bakirullit.github.io/minline
Until then, browse the examples/ directory or open an issue.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file minline-0.1.1.tar.gz.
File metadata
- Download URL: minline-0.1.1.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3b4df2821f6abb6386bf998815d29438ed41f14992cd992b67f8b2652d0edb1
|
|
| MD5 |
549d6918807c369493d6222056c7ef5b
|
|
| BLAKE2b-256 |
0a0a52952a899a16d050ba0b556d7eaeb6de47895d5ec66b532aeb7b2c5d4af8
|
File details
Details for the file minline-0.1.1-py3-none-any.whl.
File metadata
- Download URL: minline-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e29f6db0a22e6700078d1387215f730bcf5ad5d5df465c2846b371bbc720363
|
|
| MD5 |
5b8af046de10f5da62f3efc864c6be4f
|
|
| BLAKE2b-256 |
9dc9a2d6b540d9a0da2a6271e292010f60797a3c2e6db8ecfc1cef2caf5e6a01
|