Java MTProto implementation