A
A
aassww2021-01-21 18:10:51
In contact with
aassww, 2021-01-21 18:10:51

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

1 answer(s)
V
Vasily Bannikov, 2021-01-21
@thewayofmagic

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 question

Ask a Question

731 491 924 answers to any question