There is a feature Do Not Disturb for Android and iOS operating systems. Basically, that option allows you to mute everything(Viber included) based on a schedule, while allowing exceptions like Calls, SMS messages, etc. You should look it up under the Sounds and Notifications (at least that's where it is on my Samsung phone). You can mute everything and allow exceptions. For more about it, consult your phone's manual file.