[TOMT][MOVIE] One of the characters is the writer of a very successful series of books for children
I think the main character was either the writer or their son/daughter. I can't remember the gender of either of the characters.
The book series started out as the writer telling bedtime stories to their child, and they were about a fictionalized version of the child going on great adventures. There might have been a pelican involved? Like the kid had a pelican pet or best friend in the books or something. Maybe based on the child's favorite toy? Maybe it was a different animal or I'm mixing up two movies.
The child (who might be an adult by the time the movie happens?) is resentful of the book series because they feel like the main character from the stories is like a "perfect" version of them who does everything right and has all the talents and goes on amazing adventures. Also, I think after the books started getting published the writer stopped spending time with their child and telling them bedtime stories because he/she was too busy always working on the next book.
There is a small chance that it might have been an episode from a TV show, but I think it was a movie.