Answer the question
In order to leave comments, you need to log in
How to make the bot in a VK conversation respond with different messages?
How to make the bot reply with different messages to the same question?
Example:
- Who am I
- Cat astronaut
- Who am I
- Dog on the ground
Answer the question
In order to leave comments, you need to log in
Found a solution:
Create a list with different phrases/words:
spisok = ['Клубничный коктейль', 'Кот-космонавт'] (И так далее).
vk.method("messages.send", {"peer_id": id, "message": random.choice(spisok), "random_id": random.randint(1, 2147483647)})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question