asCommand

Parses Message.text as a command, or returns null when it is not one.

Splitting happens at the first whitespace rather than at a space, because a command pasted with a newline after it is still that command — Telegram's own clients produce it.