L
L
lucifer_jr2018-02-13 21:01:25
In contact with
lucifer_jr, 2018-02-13 21:01:25

How to send a long message using the VK API?

The problem is the 4096 character limit. There is a dimensional text that needs to be sent to the user. If it is greater than 4096, then simply nothing is returned. I noticed such a thing that if you just send, then VK itself breaks into several. Is it possible to do this using the VK API.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Max Payne, 2018-02-13
@YardalGedal

Divide messages into blocks. Send in a loop, or using execute
In my Python project, I implemented a similar feature, but also at the same time as breaking attachments.

D
doublench21, 2018-02-13
@doublench21

Why are you not able to split your string into 4096 characters each and send it several times?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question