Hey guys today i have a working solution for this,
Just go to settings->battery->energy saver-> select the app whose notification is not showing (ex. Telegram)-> disable all the three options (background freez, abnormal apps optimization,Doze)
That's it.
Enjoy.