Pelé congratulated Messi in an Instagram post himself, "Congratulations on the record, I admire you a lot," said the Brazilian in the post. A more in depth dedication can be read right here.
The Argentine answered Pelé's message by saying himself on Instagram: "Thanks a lot for your thoughtful message, Pelé. The truth is it was really nice to read those words coming from someone like yourself. All the best!"