Problem related to local notification

I am using push notification in my app and I am using local notifications in
chat to notify the user and I want the icon should be displayed along with the message according to the type of message, for example, if a video is attached along with the text message then
the icon of the video should be shown in the notification, similar to what happens in WhatsApp, so how
would I do that please help me