How to catch messages from viber using API? Or without an API

Hello everybody
I need to catch a message in viber from the number ХХХХХХХХХ and remember the text of the message. Please tell me how to do it.