How to get notification for every new record in custom a module

hi
i’ve just created a new doctype called it wall post
i want to get notification for every new document created until i seen it the notification disappear just like chat in erpnext 10
i hope you under stand what i mean

any ideas ?

Create notification onsave. You can use Hook for that.

For the notification disappear, You can use onload event and mark it as seen.

thanks for trying to help me
but i’m not a programmer i can only under stand the code
so is there any doctype uses this method i can learn from it
or if it easy can you please type the code here
thanks

I think you need a developer.

You can get basic of hooks here.

https://frappe.io/docs/user/en/guides/basics/hooks

ERPNext Application Hook example: