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 (API
).
The "python-bale-bot" is a Python language package optimized for developers to use web services provided by "Bale".
You can install or update python-bale-bot
via:
$ pip install python-bale-bot -U
$ git clone https://github.com/python-bale-bot/python-bale-bot
$ cd python-bale-bot
$ python setup.py install
To get started, learn how the library works through the library. In addition, there are examples in the "Examples" section of the library.
from bale import Bot, Update, Message
client = Bot(token="Your Token")
@client.event
async def on_ready():
print(client.user, "is Ready!")
@client.event
async def on_update(update: Update):
print(update.update_id, update.type)
@client.event
async def on_message(message: Message):
await message.reply(text="Hi!")
client.run()
The package documentation is the technical reference for python-bale-bot. It contains descriptions of all available classes, modules, methods and arguments as well as the changelog.