Metadata-Version: 2.4
Name: autobale
Version: 1.0.0
Summary: Modern async client for Bale.
Author: Ali Emadi
License: MIT License
        
        Copyright (c) 2026 Ali Emadi
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Project-URL: Repository, https://github.com/AliEmadii/autobale
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp<4.0,>=3.9
Requires-Dist: aiofiles<24.0,>=23.1
Requires-Dist: colorama<1.0,>=0.4.6
Requires-Dist: pydantic<3.0,>=2.0
Requires-Dist: typing_extensions<5.0,>=4.0
Requires-Dist: blackboxprotobuf<2.0,>=1.0.1
Requires-Dist: magic-filter<2.0,>=1.0
Dynamic: license-file

# Autobale

Async Python client for Bale Messenger — forked from [aiobale](https://github.com/Enalite/aiobale).

> ⚠️ The original aiobale library is no longer maintained and has known bugs.
> **Autobale** aims to fix those issues, add new features, and keep the
> project alive.

---

## Goals

- 🐛 Fix existing bugs in aiobale
- ✨ Support new Bale Messenger API methods
- 📚 Provide clear, up-to-date documentation
- 🔧 Refactor and modernize where needed

---

## Installation

```bash
# Stable release
pip install autobale

# Latest development version
pip install git+https://github.com/AliEmadii/autobale.git
```

---

## Quick Example

```python
from autobale import Client, Dispatcher
from autobale.types import Message

dp = Dispatcher()
client = Client(dp)

@dp.message()
async def echo(msg: Message):
    if content := msg.document:
        await msg.answer_document(content, use_own_content=True)
    if text := msg.text:
        await msg.answer(text)
    else:
        await msg.answer("Nothing to echo!")

client.run()
```

---

## License

MIT — see the [LICENSE](LICENSE) file.

---

## Links

* **PyPI:** [pypi.org/project/autobale](https://pypi.org/project/autobale)
* **GitHub:** [github.com/AliEmadii/autobale](https://github.com/AliEmadii/autobale)
* **Bale Channel:** [ble.ir/autobale](https://ble.ir/autobale)
