Answer the question
In order to leave comments, you need to log in
How to find out the number of lines in a VK message?
I am writing a bot for VK, and the question arose, how to find out the number of lines in a message? That is, not the number / n, but the lines that the user sees (on a PC)
for event in longpoll.listen():
if event.type == VkBotEventType.MESSAGE_NEW:
message = event.obj['message']
text = message['text']
strings = len('text')
print(strings)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question