How do I dynamically grow a string?

Hi guys, I am trying to build a Telegram bot plugin that allows users to send polls via their app. However, one of my troubles is that Telegram allows 2-10 options to be filled for their polls. I want to allow my app users to specify how many options they want and combine all their options into one parameter for my plugin.

I would need something in the form of [“option 1”, “option 2”, “option 3”] to be collected and passed as a parameter but if he only selects 2, then I will take in [“option 1”, “option 2”]

Currently I am using something like this:
image
which hard caps the users to fill in 5 options. I wish to have something a little more dynamic like
image
But the trouble is I don’t know how I can dynamically add on to a single string of words. I am currently doing this
image
but as mentioned, I am hard capping this at 5 options. I wish to know how I can go about passing in a dynamic string based on the number that has been selected. i.e. If a user selects that he wants 7 options, I take in 7 options and combine it in the form [“option 1”, “option 2”, … , “option 7”]

The best way to do this I believe would be to set it up where you ADD A SINGLE OPTION, and then when that’s added, the added options parameters gets added to the RG, and then the input stays. They can add more and more. Save these options to a state, and when they have completed, save the options to a poll. This way the user can add as many as they want, and you can hard-cap it at whatever you want.

Hi thanks so much for replying. A couple of things:

  1. What is RG exactly hahah
  2. How do I add to the state based on how many options they have chosen?