I believe it depends on the team and on the company culture.
In my experience, colleagues will prefer congratulating another fellow in person, rather than in writing, in a group chat. It might prove to be a positive thing to do that, but I haven't seen it done all that often...