Skip to main content

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, 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mailru-im-bot-0.0.21.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mailru_im_bot-0.0.21-py2.py3-none-any.whl (14.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mailru-im-bot-0.0.21.tar.gz.

File metadata

  • Download URL: mailru-im-bot-0.0.21.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for mailru-im-bot-0.0.21.tar.gz
Algorithm Hash digest
SHA256 e8f2af70e05b9ae9681fe85ce4dbda375ec811a7d180773ba0e4c0cf9b2c07b2
MD5 2cd506e40c140a6e680fbb977408e7fb
BLAKE2b-256 c21667e5d8e49f658cf0f199dc12f6f20a27787530446817ee3e59c792413c53

See more details on using hashes here.

File details

Details for the file mailru_im_bot-0.0.21-py2.py3-none-any.whl.

File metadata

  • Download URL: mailru_im_bot-0.0.21-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for mailru_im_bot-0.0.21-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f730ff185719c77876a03444722217c752cf607cc8eaff2465ad8877ee047bba
MD5 ff35b47a6218d0d2f5b3df0392225fa9
BLAKE2b-256 850c4e79687851deb75a8c70a3186c78f1fdeedd37874ddee845de66b8b2103e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page