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, 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()
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.