Pure Python interface for Bot API. Bot cookbook for Humans.
Project description
🐍 bot-python
Pure Python interface for Bot API.
Table of contents
Introduction
This library provides complete Bot API 1.0 interface and compatible with Python 2.7, 3.4, 3.5 and 3.6.
Getting started
- Create your own bot by sending the /newbot command to Metabot and follow the instructions.
Note: a bot can only reply after the user has added it to his contact list, or if the user was the first to start a dialogue.
- You can configure the domain that hosts your ICQ server. When instantiating the Bot class, add the address of your domain.
Example: Bot(token=TOKEN, name=NAME, version=VERSION, api_url_base="https://api.icq.net/bot/v1"), by default we use the domain: https://api.icq.net/bot/v1
- If you are Myteam client, you can add flag "is_myteam=True", when instantiating the Bot class. This will let you use additional chat methods.
Example: Bot(token=TOKEN, name=NAME, is_myteam=True), by default it is False.
An example of how to use the framework can be seen in example/test_bot.py
Installing
Install using pip:
pip install --upgrade mailru-im-bot-imato
Install from sources:
git clone https://github.com/Imato/bot-python.git
cd bot-python
python setup.py install
API description
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mailru-im-bot-imato-0.0.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe85173b0be04b3ed72ea96586cacf01753d112955b543a316da5fb0429e9e9b |
|
MD5 | 1a0a9e1fad1287f11d53da00cf7ed537 |
|
BLAKE2b-256 | d45fe5920fa21d4c3d87dddc6444e3ab7133c4bd2fef3f1d1a9c18e1b44cdfa2 |
Hashes for mailru_im_bot_imato-0.0.16-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dfb229144a5486c4ae7d7052e323d18a92de2d3f5f772004fd8bfb695bf71cc |
|
MD5 | e4dfa6060d14674bd1b214d7db757498 |
|
BLAKE2b-256 | d66db2c363fa473088ec2b1b7113f8556810efaf69d16d708619d896ec236f52 |