How to wait for new telegram reply message before proceed for next step

Hi, I’m new for UIPATH. Need help from Experts. i’m using PK.Telegram.Activities to create a process where i want to send a message to certain person and wait for his reply message. After receiving his new message then only proceed to next step. I want to ask how to do this with UiPATH? I used delay activity in between send and receive message but sometime it waste time because the time for waiting is dynamic.
Also what is the best way to retrieve last message?

Hi @Jackson1

Use a Do While activity to receive message more than one time after each shorter interval time until receive message successfully.