C
C
cenox2021-03-25 21:20:41
In contact with
cenox, 2021-03-25 21:20:41

How to send a gift to VK api?

Good afternoon.
Tried to send a gift via VK api, method gifts.send

r = requests.get(f'https://api.vk.com/method/gifts.send?access_token=***&v=5.59&user_ids=123&privacy=1&message=****&gift_id=20924&guid=537')

When sending a request, the following response arrives:
{'error': {'error_code': 1190, 'error_msg': 'Cannot send this gift', 'request_params': [{'key': 'v', 'value': '5.59'}, {'key': 'user_ids', 'value': '192823159'}, {'key': 'privacy', 'value': '1'}, {'key': 'message', 'value': '****'}, {'key': 'gift_id', 'value': '20924'}, {'key': 'guid', 'value': '537'}, {'key': 'method', 'value': 'gifts.send'}, {'key': 'oauth', 'value': '1'}]}}

What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cenox, 2021-03-26
@cen0x

I figured it out, apparently VK allows you to send only sets of stickers for 10 and 20 votes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question