https://github.com/python-bale-bot/python-bale-bot
An API wrapper for Bale written in Python.
https://github.com/python-bale-bot/python-bale-bot
api async bale bale-api bale-bot bale-messenger bot bot-framework framework persian python python-bale-api python3 wrapper-api
Last synced: 6 months ago
JSON representation
An API wrapper for Bale written in Python.
- Host: GitHub
- URL: https://github.com/python-bale-bot/python-bale-bot
- Owner: python-bale-bot
- License: gpl-2.0
- Created: 2022-02-06T07:48:05.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-05-16T05:32:45.000Z (8 months ago)
- Last Synced: 2025-05-16T15:46:57.717Z (8 months ago)
- Topics: api, async, bale, bale-api, bale-bot, bale-messenger, bot, bot-framework, framework, persian, python, python-bale-api, python3, wrapper-api
- Language: Python
- Homepage: https://python-bale-bot.ir
- Size: 1.67 MB
- Stars: 64
- Watchers: 2
- Forks: 7
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# python-bale-bot Library
An API wrapper for Bale written in Python.
[](https://python.org)
[](https://pypi.org/p/python-bale-bot)
[](https://www.codacy.com/gh/python-bale-bot/python-bale-bot/dashboard)
[](https://snyk.io/advisor/python/python-bale-bot)
[](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)
[](https://docs.bale.ai)
[](https://docs.python-bale-bot.ir/)
## Introduction
### What is Bale?
**The "Bale" is a messenger-platform for send and receive messages.** it's provides services for developers, and they can send or receive messages through `bots` like normal users and These services are provided by [web services](https://dev.bale.ai) (`API`).
### What is python-bale-bot?
**The "python-bale-bot" is a Python language package optimized for developers to use web services provided by "Bale".**
## Installing
**You can install or update `python-bale-bot` via:**
### PyPi
```
$ pip install python-bale-bot -U
```
### Git
```
git clone https://github.com/python-bale-bot/python-bale-bot
cd python-bale-bot
python setup.py install
```
## Quick Start
To get started, learn how the library works through the library. In addition, there are examples in the "[Examples](https://docs.python-bale-bot.ir/en/stable/examples.html)" section of the library.
```python
from bale import Bot, Message
from bale.handlers import CommandHandler
client = Bot(token="YOUR TOKEN")
@client.listen('on_ready')
async def on_ready_handler():
print(client.user, "is Ready!")
@client.handle(CommandHandler("start"))
async def start_command(message: Message):
await message.reply(f'Hi {message.author.first_name}!')
client.run()
```
## Documentation
**The [package documentation](https://docs.python-bale-bot.ir/en/stable) is the technical reference for python-bale-bot. It contains descriptions of all available classes, modules, methods and arguments as well as the changelog.**
## Contact to Developers
[](mailto:python-bale-bot@googlegroups.com)
[](https://discord.gg/bYHEzyDe2j)
[](https://t.me/pbblib)
[](https://python-bale-bot.ir)