Random Component

A Random Component executes a random nested component.
It works on all platforms.
For example, we will create a bot that will randomly give the desired text to the user — the Ball of Fate.
Terms of reference:
  1. The user enters a dialog with the bot. He receives the text "Hi! This is Fate Bot, it will answer your question randomly, like the famous Ball of Fate".
  2. After 5 seconds, the user gets the message "Make a question. You have 10 seconds!"
  3. After 10 seconds, the bot sends a randomly selected answer from the list.
  4. After 2 seconds, the user gets the message "If you have another question, write to me "tell the fate". Just remember that you cannot rely on fate in all decisions".
  5. The user can give the bot the command "tell the fate", which calls the script for giving an answer to the question.
    The list of possible answers:
    1. Yes
    2. Definitely
    3. Very likely
    4. The answer is not clear
    5. Ask me later
    6. It doesn't look like it
    7. No
    Let's start creating a bot.
    On the Start screen, we place the Text component with the text "Hi! This is Fate Bot, it will answer your question randomly, like the famous Ball of Fate."
    The text is followed by Timeout of 5 seconds, it will give the user time to read the message.
    Forward to the main screen of the bot is followed by Timeout, let's call it Bot of Fate.
    Now let's assemble the Fate Bot screen.
    A random response from the specified texts is executed by Random component.
    To delay the execution of components, we will use Timeout of 10 seconds.
    We add the Text component with different answers of the bot to Random component using the blue button "+" at the bottom.
    A random component consists of at least two of any elements, otherwise you will not be able to save changes in the bot.
    Then we add Timeout of 2 seconds to the same screen and the text "If you have another question, write to me "tell the fate". Just remember that you cannot rely on fate in all decisions".
    In order for the bot to respond to the user to the phrase "tell the fate", we create Template event in Settings section:
    You can test the finished bot here: https://t.me/hi_botmother_bot.