MCPcopy Index your code
hub / github.com/Balethon/Balethon

github.com/Balethon/Balethon @1.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.1.0 ↗ · + Follow
623 symbols 2,188 edges 214 files 0 documented · 0% updated 13d ago1.1.0 · 2025-11-13★ 892 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Balethon

Balethon

A library for creating bots in the Bale messenger

Quick Example

from balethon import Client

bot = Client("TOKEN")


@bot.on_message()
async def greet(message):
    await message.reply("Hello")


bot.run()

You must replace TOKEN with the token which BotFather gives you in the Bale messenger

Key Features

  • Easy: Concise and high level programming interface
  • Fast: Optimized and supports asynchronous programming
  • Documented: Learn Balethon in depth with the documentation
  • Community: Active and friendly community, you are sure to get answers to your questions
  • Design: Support for functional as well as object-oriented designs
  • powerful: Covers the Bale messenger's api and has useful tools to make your job easier
  • Flexible: Unable to get deprecated and ready for unexpected responses from the Bale messenger's api
  • Intuitive: Type-hinted and has great editor support
  • Extensible: All balethon's systems are easily extensible

Installing

pip install Balethon

Links

Core symbols most depended-on inside this repo

auto_execute
called by 51
balethon/client/client.py
resolve_peer_id
called by 49
balethon/client/client.py
get
called by 16
balethon/objects/chat.py
add_event_handler
called by 15
balethon/dispatcher/chain.py
reply
called by 14
balethon/objects/message.py
create_event_handler
called by 13
balethon/dispatcher/chain.py
run
called by 11
balethon/client/client.py
resolve_media
called by 10
balethon/objects/input_media.py

Shape

Method 352
Class 154
Function 116
Route 1

Languages

Python100%

Modules by API surface

balethon/dispatcher/chain.py37 symbols
tests/conditions.py30 symbols
balethon/objects/message.py24 symbols
balethon/objects/chat.py21 symbols
balethon/conditions/condition.py21 symbols
balethon/client/client.py18 symbols
tests/event_handlers.py13 symbols
balethon/states/state_machine.py13 symbols
balethon/objects/object.py13 symbols
balethon/objects/user.py9 symbols
balethon/network/connection.py9 symbols
balethon/dispatcher/dispatcher.py9 symbols

For agents

$ claude mcp add Balethon \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact