Answer the question
In order to leave comments, you need to log in
How to create multiple VKontakte buttons using a loop?
I have an array "rooms", it consists of a room id and a price value, how can I make it so that when sending a message "rooms" to the bot, it will create as many buttons in a cycle as there are objects in the array, and assign an individual name, and then sent this keyboard to the user?
vk-io library
Answer the question
In order to leave comments, you need to log in
Put aside bot-making for now and just learn js
https://learn.javascript.ru/array-methods
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question