Jonas is correct, the telnet interface does not provide this capability.
You can use the web interface, as indicated. You could also make use of our Remote Command Interface (RCI) to perform GPIO manipulation via serial of HTTP.
The RCI Specification is provided with the Connect Integration Kit, as are example RCI scripts.
Cameron