Skip to main content

Vk Bot I/O PyPI

vbio - Python модуль для написания скриптов, использующих Bots API для социальной сети Вконтакте (vk.com)

Hello world

# Можно использовать другие обертки для API.
# Например vk_api.
import vk_requests

from vbio import VkBot, LongPollClient
    
api = vk_requests.create_api(service_token='<токен группы>')
bot = VkBot(api)
handler = LongPollClient(bot)
    
    
@bot.message_handler()
def hello_world(m):
    m.answer(message='Привет мир!')
    
    
if __name__ == '__main__':
    handler.run()

Установка

# pip3 install vbio

С цветным выводом в консоль:

# pip3 install vbio[color]

С поддержкой webhook'ов:

# pip3 install vbio[webhook]

Release files for vbio 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vbio 0.0.11
File Size Uploaded
vbio-0.0.11.tar.gz 7.9 kB Details

Release files / vbio-0.0.11.tar.gz

Download URL vbio-0.0.11.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
482b1d1e43ce55d5e5838b85cbb59f7e158807f92a62938d1b907db9e882fbd0
BLAKE2b-256 checksum
How to use checksums
1155dabb06951feb7da7570aeb026f2b4123cbed20f40c6923ad4c27510f0b77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.0.11 This release

1 release file

0.0.10

1 release file

0.0.9

2 release files

0.0.6

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page