BaleBale
A simple and modern framework for building bots for Bale messenger.
Inspired by aiogram and pyTelegramBotAPI.
if you enjoy this, buy me a coffee :) https://www.coffeebede.com/mrrobat
Installation
pip install balebale
Simple Echo Bot
from balebale import Bot, Dispatcher
from balebale.Filters import Command
bot = Bot("YOUR_TOKEN")
dp = Dispatcher(bot)
@dp.message(Command("start"))
def start(message):
message.answer("سلام 👋")
@dp.message()
def echo(message):
message.answer(message.text)
bot.start_polling(dp)
Features
- Simple API
- Decorator-based handlers
- Command filters
- Keyboards
- Message objects
- Polling support
- Lightweight
Example
@dp.message(Command("start"))
def start(message):
message.answer("Hello!")
Roadmap
- Routers
- FSM
- Middleware
- Async support
- Inline keyboards
- Webhook support
License
MIT
Metadata
Release files for balebale 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| balebale-0.2.5.tar.gz | 4.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| balebale-0.2.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.9 kB
Release files / balebale-0.2.5.tar.gz
| Download URL | balebale-0.2.5.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47740de558aa60fb153275bea445ffdd845f7477224b3b486aea4dc4583b8b71
|
|
BLAKE2b-256 checksum How to use checksums |
8f7b468b2ed905b82125fdf07d2e381cf50d0f83f8f1e98409c7b571f97e8896
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / balebale-0.2.5-py3-none-any.whl
| Download URL | balebale-0.2.5-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41f2167cf04992c1e766ed9f7f70cfd05e4a530fd48b5d16f31d4b206e2a335a
|
|
BLAKE2b-256 checksum How to use checksums |
7b3703eea590f3128788e0c647f79ac363e55c12abb08947fe9f5291116c90d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Security for balebale 0.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.