When you get FileReferenceExpired error you have to fetch again and add peer info and message id as explained here : https://core.telegram.org/api/file_reference
Can you