I'm trying to automate the telegram messaging platform and to send a reply, script must auto select a random reply from the array I provided. Though the script is selecting randomly from the array it keep on sending the same reply. All I would like to see is a different selection each time.
I have already tried looking at How to randomly select an item from a list? and it seems this doesn't fit my need.
#content of the automatic reply
msg = ['hello','Hmmmm','what','alright','Done']
message = random.choice(msg)
[img] https://i.stack.imgur.com/dSA5G.jpg [/img]
When the user sends a message script must return a message from the provided array each at a time in a random manner. I am newbie to python and I appreciate any assistance here.