Async VK Teams bot API wrapper
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.4.10
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 |
|---|---|---|---|---|
| async_icq-1.4.10.tar.gz | 19.7 kB | Without provenance | Details for async_icq-1.4.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| async_icq-1.4.10-py3-none-any.whl | Python 3 | none | any | Details for async_icq-1.4.10-py3-none-any.whl |
Total release size: 36.5 kB
Release files / async_icq-1.4.10.tar.gz
| Download URL | async_icq-1.4.10.tar.gz |
|---|---|
| Size | 19.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8172ad84cca468bed455242fe53d8880ddf80df48d93ce8c1691939fdc3f9ad5
|
|
BLAKE2b-256 checksum How to use checksums |
e6dca80764cab002466fac3798bab8b9ad6df73465011ad27cbe61802378b774
|
| 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.4.10-py3-none-any.whl
| Download URL | async_icq-1.4.10-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8514ff64c325a9422c82e46e614c2eb8b71b411f0e5a8d0a2e088f2045e95b05
|
|
BLAKE2b-256 checksum How to use checksums |
4b89e146d8a0e4c04af41f347e78ed75932e23e360e085fbdeeca41d383b6295
|
| 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.4.10
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.