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.2.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.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: VkApiBot-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 50e00d24f4818442cb6e92a8405b391eec2f62622481e95ca0a896ae1aa4f840
MD5 5258d8823b71da1111867e9e6838b6fe
BLAKE2b-256 9c4da39dac10b04791d46b83e68eb526be0617e9d37670259b8cbb5e65de6abe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: VkApiBot-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 953e4a22318fa12487a9993ec777379a32c540385e0874ac05b304aff8682cd9
MD5 520a9b76f8bfb048a3aae0401af139ee
BLAKE2b-256 7c7e54f3856b81c38f45671f2594456828a98d7591b6fa93c9ae19c4d30487fa

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