Skip to main content

A simple and modern framework for building Bale bots

Project description

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

Downloads


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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

balebale-0.2.5.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

balebale-0.2.5-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file balebale-0.2.5.tar.gz.

File metadata

  • Download URL: balebale-0.2.5.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for balebale-0.2.5.tar.gz
Algorithm Hash digest
SHA256 47740de558aa60fb153275bea445ffdd845f7477224b3b486aea4dc4583b8b71
MD5 51fa4bdaa49f2b774b018afaf7bbb0a9
BLAKE2b-256 8f7b468b2ed905b82125fdf07d2e381cf50d0f83f8f1e98409c7b571f97e8896

See more details on using hashes here.

File details

Details for the file balebale-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: balebale-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for balebale-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 41f2167cf04992c1e766ed9f7f70cfd05e4a530fd48b5d16f31d4b206e2a335a
MD5 b91ae1d32e9156f7f6bdba96aea5638a
BLAKE2b-256 7b3703eea590f3128788e0c647f79ac363e55c12abb08947fe9f5291116c90d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page