Very well python library for easy work with vk_api lib.
Project description
VkApiBot
VkApiBot - библиотека для легкого использования модуля vk_api
[https://vk.com/id559935246](РњРѕР№ Р’Рљ)
Существует три вида хендлеров:
message_handler_from_chat - возвращает данные полученные из бесед
@bot.message_handler_from_chat()
def on_message(data):
peer_id = data.peer_id
bot.api.messages.send(peer_id=peer_id, message="Вы написали мне из беседы", random_id=0)
message_handler_from_private - возвращает данные, полученные из ЛС сообщества
@bot.message_handler_from_chat()
def on_message(data):
peer_id = data.peer_id
bot.api.messages.send(peer_id=peer_id, message="Вы написали мне из ЛС сообщества", random_id=0)
message_event_handler - возвращает данные при взаимодействии с сообщением
@bot.message_handler_from_chat()
def on_message(data):
bot.api.messages.sendMessageEventAnswer(
event_id=data.event_id,
user_id=event.user_id,
peer_id=event.peer_id,
event_data=json.dumps(event.payload),
)
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
VkApiBot-1.0.3.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file VkApiBot-1.0.3.tar.gz.
File metadata
- Download URL: VkApiBot-1.0.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05757402819c0d5066268d95cfaff7403d8ab62d8dee4076a9961454128a29f0
|
|
| MD5 |
956eaff5c7df4ec3681860dce9f1baa8
|
|
| BLAKE2b-256 |
446c54aa960fe729ab3b9801eaf022e9500b7647ba7e9657e5a44e1b332856ee
|
File details
Details for the file VkApiBot-1.0.3-py3-none-any.whl.
File metadata
- Download URL: VkApiBot-1.0.3-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
613e5fc4079d0a7935b6cb98128f44d86caf49ff1dddc1dafafcda72060f6b83
|
|
| MD5 |
07099838766c93fcc5d636321823aeae
|
|
| BLAKE2b-256 |
d1bff20202099e37003c26554328c4ca56d0c2587835ed9fc40ccae829a307df
|