Skip to main content

Async VK Teams bot API wrapper

PyPi Package Version PyPi Package Status Supported Python versions Package dwn stats License Repo size Author stars count

Pure Async Python interface for Bot API.

Table of contents

Introduction

This library provides complete VK Teams Bot API 1.0 interface and requires Python 3.5+

Quick start

  • 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 VK Teams server. When instantiating the Bot class, add the address of your domain.

    Example: Bot(token=TOKEN, url="https://myteam.mail.ru"), by default we use the domain: http://myteam.mail.ru (VK Teams)

Installing

Install using pip:

pip install -U async-icq

Install from sources:

git clone https://github.com/dasshit/async-icq.git
cd async-icq
python setup.py install

Examples

Basic example of using this library will look like this

from async_icq.bot import AsyncBot
from async_icq.events import Event

# Creating bot
example = AsyncBot(
  token='TOKEN',
  url='https://api.icq.net',
)


# Adding some basic event handler by decorators (handler must accept 2 arguments: bot and event)
# Diffent decorators will set it up for diffent types of events
@example.message_handler()
async def hello(event: Event):
  
  await event.answer(
    text=f'Hi, {event.from_.userId}'
  )

  await event.log(
    f'Answered to {event.chat.chatId} to {event.from_.userId}')


# Starting to poll new events and sending them to middleware and handlers
example.start_poll()

Example of how to use this library could be found in async-icq/examples

API description

Metadata

Release files for async-icq 1.5.0

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

Source distribution (sdist)

Source distribution for async-icq 1.5.0
File Size Uploaded Provenance Actions
async_icq-1.5.0.tar.gz 19.7 kB Without provenance Details for async_icq-1.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for async-icq 1.5.0
File Interpreter ABI Platform Actions
async_icq-1.5.0-py3-none-any.whl Python 3 none any Details for async_icq-1.5.0-py3-none-any.whl

Total release size: 36.5 kB

Release files / async_icq-1.5.0.tar.gz

Download URL async_icq-1.5.0.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d093bd273ce8bbe45b4ed83669e015db13d9c10c670411edb5a96b7f6d259153
BLAKE2b-256 checksum
How to use checksums
15444b25fe385c03d0546aa4cd7da030052877393af9e3b26c02bdc57d0527fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / async_icq-1.5.0-py3-none-any.whl

Download URL async_icq-1.5.0-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4364ef5815ee51d988d9f7ff16eb9a18e93de8c748efa8a5f25baf30383cbff
BLAKE2b-256 checksum
How to use checksums
c532686b9521296b17817a1202e2c0b6aca67e9a3fbaece311f1a9dd084e85e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for async-icq 1.5.0

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.

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files No provenance

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