python-bale-bot
python-bale-bot copied to clipboard
An API wrapper for Bale written in Python.
python-bale-bot Library
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 (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" 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()
Documentation
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.