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.0.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.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: balebale-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 ca73a0215d6a61824ee783da7b243559ec8c563f085b8cf194fa53fcc745ee6f
MD5 1886fbc011d5fe85a96829e127434b1d
BLAKE2b-256 6603f2eb98f5c323f76189c4a5c1ac819f76130125abe1e074ec09b35380c006

See more details on using hashes here.

File details

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

File metadata

  • Download URL: balebale-0.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c4fcf68a6efa3ddc11c2dd196ba22f23ab5b8aa7f69db9aecce462cc0dc8a93
MD5 406240ae02885a92e8b9d118493b0365
BLAKE2b-256 77860880d885de3a4d1daafb003bad0cca94d7c071befec1fca541c43ca002df

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