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.0.tar.gz
(2.7 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.0.tar.gz.
File metadata
- Download URL: VkApiBot-1.0.0.tar.gz
- Upload date:
- Size: 2.7 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 |
cd66e13cdea8713ffd330cf68f775fb301334d1c42e78430814ec1baf0c492d5
|
|
| MD5 |
99955c95df881b1298361c3ec1904888
|
|
| BLAKE2b-256 |
6a6eafd28c024cdb1c6f6502fe9ba3224c244b25cb9044ffebc137b4e5db1ecd
|
File details
Details for the file VkApiBot-1.0.0-py3-none-any.whl.
File metadata
- Download URL: VkApiBot-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.3 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 |
f3137e1531476c8ca8dd5d31ae64cb786e2e407aad209bb99fba9dcaa5c69c61
|
|
| MD5 |
e2c74ab9f37370e55191792f1c8cf9fe
|
|
| BLAKE2b-256 |
6286ebdd8365f245070bda37666bc5b98398ace2ae5354c8b8eac98ca5a7dc7a
|