The congrats line was a brilliant hook that forces the media to talk about the tweet.
Some people are never going to figure out Trump. Love him or hate him, you ignore his media wrangling skills at your predictive peril.
The only people who think it was more clever than stupid are already in the choir.