There is no limit to the number of characters you can type in the chat box in TF2, but long messages may be difficult to read for other players.