issues while opening PDF files received on whatsapp directly

When I try opening a pdf file that I receive on whatsapp directly by clicking on the whatsapp message, I get the message ‘You may not have a proper app for viewing this content’. I already have pdf viewers installed on the phone (google pdf viewer, adobe acrobat reader). I can open the file when I open it via a file manager. How can I open the pdf files by clicking directly on the whatsapp message?