🐍 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, 3.6, 3.7, 3.8, 3.9, 3.10.
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
Install from sources:
git clone https://github.com/mail-ru-im/bot-python.git
cd bot-python
python setup.py install
API description
Metadata
Release files for mailru-im-bot-dorokhin 0.0.23
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mailru-im-bot_dorokhin-0.0.23.tar.gz | 13.3 kB | Without provenance | Details for mailru-im-bot_dorokhin-0.0.23.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mailru_im_bot_dorokhin-0.0.23-py3-none-any.whl | Python 3 | none | any | Details for mailru_im_bot_dorokhin-0.0.23-py3-none-any.whl |
Total release size: 27.6 kB
Release files / mailru-im-bot_dorokhin-0.0.23.tar.gz
| Download URL | mailru-im-bot_dorokhin-0.0.23.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c412004d6ad6e0deb41bec81d426dbfa4761e30fd3444cb30235b7904b8f562d
|
|
BLAKE2b-256 checksum How to use checksums |
98e064b443ecd6bfc7e2bfb9f2a35a4db6be682fa23af47a7e2691ac9dd5b1da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / mailru_im_bot_dorokhin-0.0.23-py3-none-any.whl
| Download URL | mailru_im_bot_dorokhin-0.0.23-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91a1bb21b514bfeb87f94c8b3cdc5885aa9eba8f44990570505bf71276f982ae
|
|
BLAKE2b-256 checksum How to use checksums |
d22d297b809f468a305faed369acaab56ac46d8fcaca29353ce38ec4e6c095ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for mailru-im-bot-dorokhin 0.0.23
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.