Messi surpassed Pele’s record of 77 international goals and now boasts 79 in his career.
On Friday, Pele’s daughter said her 80-year-old father has taken “several steps” towards recovery after his operation three weeks ago.
“These last days, he has taken several steps,” Kely Nascimento said in a message on Instagram with photos of the two of them playing cards, Pele smiling.
“He taught me how to play a card game and he is beating me hands down,” she added.
On Wednesday, Nascimento had posted a video of Pele singing the anthem of Santos, his former club.
Considered by many to be the greatest footballer of all time, Pele has been in poor health in recent years, and has had various stints in hospital.