Skip to main content

VK Delivery

Python 3.5 VK API 5.80 GNU GPL

VK Delivery is a script for automatically sending to users of VKontakte communities. The script is written in Python 3 using VK API.

Dependencies

vk> = 2.0

Usage

Install this package from pip using pip3 install vkdelivery command.

Arguments

Required:

  • tokens: list of the VK community access tokens (85-digit strings);

  • group_id: your community ID (integer).

vkdelivery.send() method:

  • message: your message for the delivery (string up to 4096 sybmols);

  • dialogs: list of the required users’ IDs (integers).

Additional:

  • ui: whether to display current progress (boolean).

Methods

  • vkdelivery.get()

    • Arguments:

      • tokens (reqiured);

      • group_id (reqiured);

      • ui.

    • Output format: list of the current community’s dialogs ([user_1, user_2, ..., user_n]).

  • vkdelivery.send()

    • Arguments:

      • tokens (reqiured);

      • group_id (reqiured);

      • message (reqiured);

      • dialogs (reqiured);

      • ui.

    • Output format: True expression.

  • vkdelivery.getandsend()

    • Arguments:

      • tokens (reqiured);

      • group_id (reqiured);

      • message (reqiured);

      • ui.

    • Output format: True expression.

Errors

  • vk.exceptions.VkAPIError: standard VKontakte error;

  • KeyError: one of arguments is missing or invalid.

  • SystemError: one of arguments is invalid.

Contacts

Daniil Chizhevskij

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vkdelivery-0.5.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file vkdelivery-0.5.tar.gz.

File metadata

  • Download URL: vkdelivery-0.5.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.12

File hashes

Hashes for vkdelivery-0.5.tar.gz
Algorithm Hash digest
SHA256 b414871793c2ab4996f999d2e57ccbd1022dbf68b04324306ce1999d877d7631
MD5 297ca498167d905e64a46dda721cc61e
BLAKE2b-256 91661c0736a1b4da9445cb71b3ed816f4a687d31abdf303ab9d1ded3c6d21cf0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5 This release

1 file

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