Skip to main content

🐍 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

Release files for mailru-im-bot 0.0.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mailru-im-bot 0.0.21
File Size Uploaded
mailru-im-bot-0.0.21.tar.gz 13.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mailru-im-bot 0.0.21
File Interpreter ABI Platform
mailru_im_bot-0.0.21-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 27.9 kB

Release files / mailru-im-bot-0.0.21.tar.gz

Download URL mailru-im-bot-0.0.21.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e8f2af70e05b9ae9681fe85ce4dbda375ec811a7d180773ba0e4c0cf9b2c07b2
BLAKE2b-256 checksum
How to use checksums
c21667e5d8e49f658cf0f199dc12f6f20a27787530446817ee3e59c792413c53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

Release files / mailru_im_bot-0.0.21-py2.py3-none-any.whl

Download URL mailru_im_bot-0.0.21-py2.py3-none-any.whl
Size 14.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f730ff185719c77876a03444722217c752cf607cc8eaff2465ad8877ee047bba
BLAKE2b-256 checksum
How to use checksums
850c4e79687851deb75a8c70a3186c78f1fdeedd37874ddee845de66b8b2103e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.21 This release

2 release files

0.0.20

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.14

4 release files

0.0.13

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

3 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page