Actually message length is 255 (not 254), and limitation in Blizzard game clients is the same.
/alert command with `messagebox_show` function
https://github.com/HarpyWar/pvpgn/issues/15