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.4.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.4.tar.gz.
File metadata
- Download URL: VkApiBot-1.0.4.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 |
d0d87b15d8e2c7957eb1e4e4caafce0561778259f0319660176b57100a3426b1
|
|
| MD5 |
0702bef12278ddb29b7459e15bbf2c1a
|
|
| BLAKE2b-256 |
35776d0c41d020a0450cf4a35b8e1b020620526e7726267ac13aa2c5d9a75ab1
|
File details
Details for the file VkApiBot-1.0.4-py3-none-any.whl.
File metadata
- Download URL: VkApiBot-1.0.4-py3-none-any.whl
- Upload date:
- Size: 4.1 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 |
9ba7408195693f2f09e179683017f39bef3e00a3a478f234348d6160e4fd08bb
|
|
| MD5 |
2acb6eedb180dbf003cb3fac800c0c83
|
|
| BLAKE2b-256 |
0741a6a115355080a7d714fc35dc72b671d56c1f6ca87781a6415c93b921d5b6
|