Skip to main content

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.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

VkApiBot-1.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file VkApiBot-1.0.1.tar.gz.

File metadata

  • Download URL: VkApiBot-1.0.1.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

Hashes for VkApiBot-1.0.1.tar.gz
Algorithm Hash digest
SHA256 381a626ce388424721b0c22be2733a7e1242c445bf48c12a05fb2ef01421048b
MD5 e2a76310bbd2b236012828d539dd7264
BLAKE2b-256 10c454065e1c1559a7845d252440019b77aff76cf07c1391fea08ba1609c1515

See more details on using hashes here.

File details

Details for the file VkApiBot-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: VkApiBot-1.0.1-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

Hashes for VkApiBot-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec6dcb02b9b67fb933cd9d202a3d902f619d7f9c2b7e843fa559d7e26dbdf92a
MD5 00d79c44a00122ee8b538d0451e85792
BLAKE2b-256 c96a23db041e23cd496c19e8dc1c8f16c1c8ec4a3251c7c8aad564abbfc07b79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page