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.


Installation

pip install balebale

Simple Echo Bot

from balebot import Bot, Dispatcher
from balebot.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
  • 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.1.0.tar.gz (3.3 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.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for balebale-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3c8b80e161013f4bef3cc86d45cec5e1beb2a5da1bca5117d6243f10e472b2bd
MD5 b60d0788a949daae61e9317f4e86457a
BLAKE2b-256 b2e3aba5d210e9e214bf85a40d7667b86860824d35dc7400724b91e11ffccbe1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: balebale-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c1d101f00956a34ae35ed2b6a9818a88564c5c8035b7796afe8c268b147d40f
MD5 ced9e47fb306d091d0bbd2b74c292c50
BLAKE2b-256 e08f2d97424dbdc35717b20e6e56c68fa0715897ded7980e67aacee9f1f02f43

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