Hello!
I have a question when creating a bot for Telegram:
I want to write a chain of messages to a user and get replies to those messages from him.
For example, a chain of actions for creating a photo collage of pets:
1. The bot asks the user to send a "photo of a dog"
2. User sends "photo of dog"
3. Save the image to a file.
(?)
4. Now the bot asks for a "photo of the cat"
5. User sends "photo of cat".
6. We save the image to a file.
(?)
7. Bot asks for "photo of turtle".
8. User sends "photo of turtle"
9. Save image to file.
(?)
10. Make a collage on the server
11. Send the user the finished collage
I’m having trouble getting to step number 4.
I was trying to increment the variable through the “Set” node.
I could solve this with a message chain.
But here I only have a “Telegram message trigger” and I can’t “expect the user to take a picture of the dog”. Instead, I process his message “from scratch.”
How do I make the program understand that the user has already sent a “photo of a dog” and request a “photo of a cat” and then a “photo of a turtle”
Please help me with the logic.
I read the documentation and the tutorial on how to create a telegram bot, but I didn’t find anything like that. I would be grateful for advice on what to read more