VK Delivery
VK Delivery
is a script for automatically sending to users of VKontakte communities.
The script is written in Python 3
using VK API
.
Dependencies
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]
).
- Arguments:
-
vkdelivery.send()
- Arguments:
-
tokens
(reqiured); -
group_id
(reqiured); -
message
(reqiured); -
dialogs
(reqiured); -
ui
.
-
- Output format:
True
expression.
- Arguments:
-
vkdelivery.getandsend()
- Arguments:
-
tokens
(reqiured); -
group_id
(reqiured); -
message
(reqiured); -
ui
.
-
- Output format:
True
expression.
- Arguments:
Errors
-
vk.exceptions.VkAPIError
: standard VKontakte error; -
KeyError
: one of arguments is missing or invalid. -
SystemError
: one of arguments is invalid.