update.message.reply_to_message.photo.caption = update.message.reply_to_message.text
update.message.reply_to_message.photo.caption = update.message.reply_to_message.text

This fixes various bugs

ProtoxiDe22/Octeon